API Help
Eplan.EplApi.System Namespace / EplApplication Class / SetMainFrame Method
Example

In This Topic
    SetMainFrame Method
    In This Topic
    Sets a new Mainframe for API offline program. API offline program will show all dialogs which are normally hidden in add-ins. It is possible to hide such dialogs using ResetQuietMode method.
    Syntax
    public void SetMainFrame( 
       IntPtr pMainWnd
    )
    public:
    void SetMainFrame( 
       IntPtr pMainWnd
    ) 

    Parameters

    pMainWnd
    Example
    p.e. form1 is a System.Windows.Forms.Form
    Eplan.EplApi.System.EplApplication app = new Eplan.EplApi.System.EplApplication();
    app.SetMainFrame(form1.Handle);
    See Also