Property WindowHandle
WindowHandle
Gets the window handle of the KitchenDraw application.
Declaration
public IntPtr WindowHandle { get; }
Property Value
Type | Description |
---|---|
IntPtr | The value is a Windows HWND. |
Examples
In Windows Forms, you can do like this to set KitchenDraw as parent window for a form:
NativeWindow parentWindow = new NativeWindow();
parentWindow.AssignHandle(appli.WindowHandle);
yourForm.Show(parentWindow);
// -or-
yourForm.ShowDialog(parentWindow);
In WPF, you can do like this:
WindowInteropHelper wih = new WindowInteropHelper(yourWindow);
wih.Owner = appli.WindowHandle;