Advertising banner:
 
 
 A326
 
81203_43854_21.png 81203_43840_19.png


Method
Definition
Syntax
Example
DisableFormEvents
Disables the following form events:
       Click
       DoubleClick
        Activate
       Deactivate
and the following field events:
       Click (except buttons)
       DoubleClick
       GotFocus
       LostFocus.
This form method is useful for applications running on high usage systems. If the events listed are not used in the application, disabling these form events can reduce client-server overhead.
formname.DisableFormEvents
EnableFormEvents
Enables form and field events disabled with the DisableFormEvents form method.
formname.EnableFormEvents
Hide
Hides a form from view.
A hidden form is not unloaded; the form continues to exist with current attributes and values intact. Showing a hidden form will redisplay the form with all attributes set as they were prior to running the Hide form method. If the application ends, a hidden form is automatically unloaded.
formname.Hide
Show
Displays a modeless form. If the form has not been loaded, Show will load the form and data environment before displaying.
formname.Show
Swap
Hides a form's content and display a second form within the form's original window.
formname.Swap(swapform)
The swapform argument can be any string expression that is a valid form name. This method allows the programmer to dramatically change the interface in the window without hiding and unhiding fields.
Be sure to put the swapform argument as a string and not a direct reference to the form object. If the swapform argument is a direct reference to the form object, the form's default attribute, Title, will be used as the swap form name.
        Form1.Swap("Form2)      'Correct!
        Form1.Swap(Form2)       'Incorrect! Passes Form2's title as an argument.


hirosue Shino Web Site