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