how-would-i-update-mouse-position-in-toolstripstatuslabel


SUBMITTED BY: menamagice

DATE: Aug. 9, 2017, 2:02 a.m.

FORMAT: Text only

SIZE: 633 Bytes

HITS: 233

  1. I seem to have run into a road bump with what seems to be a small problem but can't seem to find the answer. This is my first question asked here, and I apologize if I missed the solution to this question!
  2. I have a toolStripStatusLabel that I want to have the current position of the mouse, I was able to get the coordinates doing this:
  3. private void mouseCoordinatesToolStripStatusLabel()
  4. {
  5. this.toolStripStatusLabel1.Text = MousePosition.ToString();
  6. this.Refresh();
  7. }
  8. But this has only been able to get me the mouse's position when I load and not when I move my mouse.
  9. Any help would be appreciated, thank you!

comments powered by Disqus