Visual Basic and Forms
1,295 bytes added
20:20, 18 July 2007
Specifying the Position of a Form on the Display
== Specifying the Position of a Form on the Display ==
The initial position of a form when it is first displayed in an application is controlled by the form's ''StartPosition'' property in conjunction with the ''Location'' property. The ''StartPosition'' property can be set to one of a number of different values:
* Manual - Sets the initial position of the form to the X and Y coordinates specified by the ''Location'' property.
* CenterScreen - Specifies that the form should be positioned in the center of the display.
* WindowsDefaultLocation - This is the default setting for this property and dictates that the form be positioned in the default Windows location for new windows (typically near the top left hand corner of the screen).
* CenterParent - If the form is a child of another form, this value specifies that the form should be positioned within the center of the parent form.
== Modal and Non-modal Forms ==
A Windows form can be displayed in one of two modes, modal and non-modal. When a form is non-modal it means that other forms in the other forms in the application remain accessible to the user (in that they can still click on controls or use the keyboard in other forms).
When a form is modal, as soon as it is displayed all other forms in the application are disabled until the modal dialog is dismissed by the user.
== Changing the Form Border ==
← Older edit
Newer edit →
Retrieved from "
iOS / iPhone / iPad
Windows Server 2008
Red Hat Linux
Ad Blocking Survival
iOS 11 App