devonmanelski.com
 
Home | I.T. Management | Business Analysis & Project Management | VB.Net | SQL Server | About |

The Form Object
  1. Summary
  2. The Form Object is an instance of the Forms Class. Forms are the building blocks of a software application that has a Graphical User Interface (GUI). One of the most basic things that a Software Engineer does when building a software application is to design the Forms of the application. Software Engineers set the properties of the Form, place controls on the Form, and write computer code in the Event Procedures of the Form. Below is a list of some of the most important Properties and Events of the Form Object1.

  3. Screenshots
  4. Properties
    1. Form.Name - The Name of the Class that is instantiated to create the Form Object.
    2. Form.Text - The Text that is displayed in the upper left hand corner of the Form.
    3. Form.StartPosition - The starting position of the Form when an instance of the Form is created, i.e. CenterScreen or CenterParent.
    4. Form.WindowState - The state of the window, i.e. Maximized or Minimized.
    5. Form.MaximizeBox - A Property that sets whether the Maximize Box of the Form is displayed.
    6. Form.MinimizeBox - A Property that sets whether the Minimize Box of the Form is displayed.
    7. Form.Size - A Property that sets the Width and Height of the Form.
    8. Form.IsMdiContainer - A Property that sets whether the Form is a MdiContainer.
    9. Form.Location - A Property that sets the x and y coordinates of the upper left hand corner of the Form.
    10. Form.ShowInTaskbar - A Property that sets whether the Form will be displayed in the Windows Taskbar.
    11. Form.Tag - A Property that can store a text value that is attached to an instance of a Form.
    12. Form.TopMost - A Property that determines whether the Form always has the highest z-order of all open Windows.
  5. Events
    1. Form_Closed - An event that is used to capture when a Form closes.
    2. Form_Load - An event that is used to capture when a Form loads.
    3. Form_MouseClick - An event that is used to capture when a user clicks the mouse pointer on a Form.
    4. Form_MouseDoubleClick - An event that is used to capture when a user double-clicks the mouse pointer on a Form.

1 When you have finished a form, remember to set the tab order of the form by specifying the TabIndex position of each control on the form.


Copyright © Devon Manelski