Form - ActivateForm Method

Forces the form to become the active window

Member of Form (PRIM_FORM)

Details

The ActivateForm method makes the form the focus window and ensures it is on top of all other forms.
 
Minimized forms are not restored automatically.

Example

This example demonstrates a simple Show routine that might be included in a base form.
 
If the form is already open
Mthroutine Name(Show)
 
   If (#Com_owner.WindowState = Minimized)
 
      #Com_owner.RestoreForm
      #Com_owner.ActivateForm
 
   Else
 
      #Com_owner.Showform
 
   Endif
 
Endroutine

See also

All Component Classes

Technical Reference

Febuary 18 V14SP2