Share via


FormRun.setActive Method

Sets a form as active and gives it focus.

Syntax

public void setActive()

Run On

Client

Examples

The following example shows a call to the setActive method to set the form as active.

void runForm(Form form) 
{ 
    Args args; 
    FormRun formRun; 
  
    args = new Args(); 
    args.object(form); 
 
    // Create the run-time form. 
    formRun = new FormRun(args); 
    formRun.run(); 
    formRun.detach(); 
 
    // Sets the form as active. 
    formRun.setActive(); 
}

See Also

Reference

FormRun Class