Getting the handle of window in C#
Control.Handle
An
IntPtr
that contains the window handle (HWND) of the control.
Try this in your form:
IntPtr myHandle = this.Handle;
It will return the handle of the form.
Control.Handle
An
IntPtr
that contains the window handle (HWND) of the control.
Try this in your form:
IntPtr myHandle = this.Handle;
It will return the handle of the form.