How to get the senders' position (coordinates) in Windows Form Application?

I just began learning WinForms and am currently baffled on how to get the senders' (mouses') position (coordinates). I tried searching but to no avail.

This is my, somewhat, of a try but, sadly, it ended up with an error:
1
2
3
4
private: System::Void pictureBox1_MouseHover(System::Object^  sender, System::EventArgs^  e) {
    this->pictureBox1->Location = System::Drawing::Point(sender::Position.X - 5, sender::Position.Y - 5);
    MessageBox::Show("Foo", "Bar", MessageBoxButtons::OK, MessageBoxIcon::Stop);
}

So my question here is quite clear, I think: how can I get the senders' position (in this case, the mouses'). Explanations would also be of help. Thank you.
Try this:
1
2
3
  Point^ pt = pictureBox1->PointToClient(Control::MousePosition);
  String^ location = String::Format("X = {0}, Y = {1}", pt->X, pt->Y);
  MessageBox::Show(location);
Topic archived. No new replies allowed.