Rick Malek

Rick Malek

  • NA
  • 201
  • 14.5k

Determine Point.X and Point.Y

Apr 26 2004 7:55 PM
I am trying to figure out how to determine where the sytlus is when it is pressed on the palette. When the stylus is held down a Context menu is to pop-up and when a selection is made a textbox is to be placed on the form with a specific letter in it. I have all this worked out except for determining where the stylus is on the screen. I am using the following C# code private void contextMenu1_Popup(object sender, System.EventArgs e) { posx = Form1.MousePosition.X; posy = Form1.MousePosition.Y; } It gets close, but not close enough. The point has to be close to where the stylus is becuase the application is being used to record a hockey game (shots on goal and goals) and the information has to be pretty accurate. Does anyone have any ideas? Thanks!