Framework.CreateWindow(String,Icon,MainMenu,Int32,Int32) Method (CreateWindow)

Creates a window for the application.

Definition

Visual Basic Public Sub CreateWindow( _
    ByVal windowTitle As String, _
    ByVal icon As IconLeave Site, _
    ByVal menu As MainMenuLeave Site, _
    ByVal x As Integer, _
    ByVal y As Integer _
)
C# public void CreateWindow(
    string windowTitle,
    IconLeave Site icon,
    MainMenuLeave Site menu,
    int x,
    int y
);
C++ public:
void CreateWindow(
    StringLeave SitewindowTitle,
    IconLeave Siteicon,
    MainMenuLeave Sitemenu,
    int x,
    int y
);
JScript public function CreateWindow(
    windowTitle : String,
    icon : IconLeave Site,
    menu : MainMenuLeave Site,
    x : int,
    y : int
);

Parameters

windowTitle System.String
The title to use for the form that is created.
icon System.Drawing.Icon
The icon to use for the form that is created.
menu System.Windows.Forms.MainMenu
The menu to use for the form that is created.
x System.Int32
The horizontal start position for the window that is created.
y System.Int32
The vertical start position for the window that is created.

Remarks

This method is called by the framework with default parameter if the application calls the CreateDevice, SetDevice, or CreateDeviceFromSettings methods before this method.

Instead of calling CreateWindow, you can call SetWindow to change the settings of the current window used by the application.