Share via


FormRun.design Method

Retrieves a FormDesign object.

Syntax

public FormDesign design([int reserved])

Run On

Client

Parameters

  • reserved
    Type: int

Return Value

Type: FormDesign Class
A FormDesign object.

Examples

The following example shows a call to the design method to instantiate the FormDesign class. The FormDesign.caption method specifies a caption for the form.

void runForm(Form form) 
{ 
    Args args; 
    FormRun formRun; 
    FormDesign formDesign;  
 
    args = new Args(); 
    args.object(form); 
 
    // Create the run-time form. 
    formRun = classfactory.formRunClass(args); 
 
    formRun.run(); 
    formRun.detach(); 
     
    formDesign = formRun.design(); 
    formDesign.caption("My Form"); 
}

See Also

Reference

FormRun Class