Previous | Index | Next 

[INFO] Form Left and Top properties not correctly migrated if StartupPosition is Manual

If the StartupPosition property of a VB6 form is set to 0-Manual, then the Left and Top properties might not be correctly migrated. This behavior is by design and is somewhat similar to what happens under VB6.

The behavior is to be considered as correct in that the actual position where the form is displayed at runtime depends on many factors that are specific to the computer on which the project has been compiled, e.g. the Windows version, the Windows shell theme, and so forth.

To force a specific location for a form you should set the Left and Top properties in the Form_Load or Form_Activate event handlers.

 

Previous | Index | Next