awareopk.blogg.se

Visual basic example
Visual basic example








visual basic example

Inherit: It indicates that the controls are scaled according to the auto scale mode property of their parent class. It indicates that the controls on the form are scaled relative to the display resolution. None: It indicates that automatic scaling is disabled.įont: It indicates that the controls on the form are scaled relative to the size of the font.ĭpi: It stands for dots per inch. This property affects the controls on the form.ĭifferent values of this property are as follows: The default value of this property is font. The auto scale mode property is used to specify how the controls on the form are scaled to the height of the current font. The button with the caption Button1 is usually set as accept button for a form. The accept button is the button that is automatically activated when enter key is pressed no matter which control has the focus at that time. The accept button property is used to specify the default accept button. Some important properties of the form are as follows: Accept Button: Restore: This button is used to change the form back to its normal form.Ĭlose: This button is used to close the form. Maximize: This button is used to enlarge the form to full size if the form is in normal size. When the form is minimized, it is shown only on the taskbar. Minimize: This button is used to minimize the form.

visual basic example

It appears when the user click the icon on the left side of the title bar. You can also double click it to Maximize/Restore the form.Ĭontrol Menu: Control menu is also used to close, minimize, maximize or move the form. The form can be moved from one place to another by dragging the title bar with the mouse. Title Bar: The title bar is the colored bar on the top of the form. Visual basic provides different types of border styles that can be applied to any form. The user can add as many forms as required in the application.ĭifferent parts of a form are as follows:īorder: The border of the form changes the look of the form. A form appears automatically when a new project is created. All controls of graphical user interface are typically placed on a form such as labels, textboxes and buttons etc. Vb.net Tutorial: Visual basic Form Properties – Form is the fundamental object in the development of a visual basic project. Example3: how to make a simple form resizing project in visual basic:.Example2: perform some basic operations on form in visual basic:.Example1: how to use multiline in visual basic.










Visual basic example