Hi,
can anybody explain to me, how to use the ScreenToClient function I've done this:
where panel is a Panel and the mousePos is a Point. The Error I get is: can't convert IntPtr to HWND
thx for help
can anybody explain to me, how to use the ScreenToClient function I've done this:
Code:
IntPtr hwnd;
hwnd = panel1 -> get_Handle();
ScreenToClient(hwnd, mousePos);
where panel is a Panel and the mousePos is a Point. The Error I get is: can't convert IntPtr to HWND
thx for help