Previous | Index | Next 

[PRB] DTPicker controls display their content using the LongDate format

As of this writing, we haven’t found a reliable way to decode the value of the DTPicker’s Format property stored in the .frm file, therefore this property is left unassigned under VB.NET and the control uses its default value 0-dtpLongDate. The temporary solution is assigning the property manually by means of a WriteProperty pragma, as in this code:

        ' (inside the VB6 form)
        '##DTPicker1.WriteProperty Format, 1  ' = dtpShortDate

Another solution for this issue is to run the VBMP Project Dumper add-in for VB6, which produces a dump of all the properties of all controls and forms in the current project. VB Migration Partner can then read the value of the Format property by reading the XML file output by the add-in.

 

Previous | Index | Next