Form Positioning for Visual Basic 6.0 Users
Setting the position of a form on the screen differs between Visual Basic 6.0 and Visual Basic 2005.
Left and Top Properties
In Visual Basic 6.0, the initial screen location for a form can be set at design time using the Form Layout window or by setting the Left and Top properties in the Properties window. The Left and Top properties can also be set programmatically.
In Visual Basic 2005, the initial screen location is set at design time by setting the Location property, or programmatically by setting the Location property to a Point object.
In addition, Visual Basic 6.0 supports a StartUpPosition property that can be used to allow Windows to automatically set a location (for example, centered on the screen). The default setting is Manual, meaning that the Left and Top properties take precedence.
In Visual Basic 2005, the StartPosition property performs the same function. The default setting is now WindowsDefaultLocation, meaning that the Location property is ignored.