C
Christian Westerlund
Hi!
I want to get the mouseposition where I tapped on the screen and the
contextmenu appears.
My contextmenu is attached to a datagrid.
I've read about others that had the same problem as I but I didn't find
any soloution that worked.
I've tried the following:
Control.MousePosition : always returns 0 if I click on a cell
otherwise it is correct
[DllImport("coredll.dll")]
public static extern int GetCursorPos(
ref POINT lpPoint ); : The same with this one
override the OnPopup or Show from the Contextmenu : returns 0
override the OnMouseDown or OnGotFocus : returns 0
/Christian
I want to get the mouseposition where I tapped on the screen and the
contextmenu appears.
My contextmenu is attached to a datagrid.
I've read about others that had the same problem as I but I didn't find
any soloution that worked.
I've tried the following:
Control.MousePosition : always returns 0 if I click on a cell
otherwise it is correct
[DllImport("coredll.dll")]
public static extern int GetCursorPos(
ref POINT lpPoint ); : The same with this one
override the OnPopup or Show from the Contextmenu : returns 0
override the OnMouseDown or OnGotFocus : returns 0
/Christian