vb.net_forms.pdf - VB.NET FORMS...

This preview shows page 1 - 3 out of 7 pages.

Copyright © tutorialspoint.com VB.NET - FORMS VB.NET - FORMS Let's start with creating a Window Forms Application by following the following steps in Microsoft Visual Studio: File -> New Project -> Windows Forms Applications Finally, select OK, Microsoft Visual Studio creates your project and displays following window Form with a name Form1 . Visual Basic Form is the container for all the controls that make up the user interface. Every window you see in a running visual basic application is a form, thus the terms form and window describe the same entity. Visual Studio creates a default form for you when you create a Windows Forms Application . Every form will have title bar on which the form's caption is displayed and there will be buttons to close, maximize and minimize the form shown below:
Image of page 1

Subscribe to view the full document.

If you click the icon on the top left corner, it opens the control menu, which contains the various commands to control the form like to move control from one place to another place, to maximize or minimize the form or to close the form. Form Properties Following table lists down various important properties related to a form. These properties can be set or read during application execution. You can refer to Microsoft documentation for a complete list of properties associated with a Form control: S.N Properties Description 1 AcceptButton The button that's automatically activated when you press Enter, no matter which control has the focus at the time. Usually the OK button on a form is set as AcceptButton for a form. 2 CancelButton The button that's automatically activated when you hit the Esc key. Usually, the Cancel button on a form is set as CancelButton for a form. 3 AutoScale This Boolean property determines whether the controls you place on the form are automatically scaled to the height of the current font. The default value of this property is True. This is a property of the form, but it affects the controls on the form. 4 AutoScroll This Boolean property indicates whether scroll bars will be automatically attached to the form if it is resized to a point that not all its controls are visible. 5 AutoScrollMinSize This property lets you specify the minimum size of the form, before the scroll bars are attached. 6 AutoScrollPosition The AutoScrollPosition is the number of pixels by which the two scroll bars were displaced from their initial locations.
Image of page 2
Image of page 3
  • Spring '17
  • Seng Molika
  • Windows Forms, .NET Framework, Microsoft Visual Studio

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern