Different methods are used in forms. When you put a dot after name of the form then a popup menuis displayed. |
|
There are different methods for forms .Some of them are describing here. |
|
|
|
Show method |
|
Show method is used to display the form object. |
For Example to display the form frmStudents, |
following code is written: |
frmStudents.Show |
|
Hide Method |
|
The Hide method is used to hide a form. |
For example to hide a form, following code is written: |
frmStudents.Hide |
|
The Cls Method |
|
All text and graphics on the form that were created with Print and graphics methods can be deleted with the Cls method. |
Example: frmStudents.Cls |
|
The Refresh Method |
|
Forces a complete repaint of a form. |
For example: |
form1.Refresh |
Use the Refresh method when you want to Completely display one form, while another form loads. |
|
Point Method |
|
Returns the red-green-blue (RGB) color of the specified point on a Form. It returns color as a longinteger. |
form1.Point(x, y) |