You can poll the mouse buttons in the Move event handler, that is:
void Form1_MouseMove(object sender, System.Windows.Forms.MouseEventArgs e) { if (e.Button == MouseButtons.Left) { String tipText = String.Format("({0}, {1})", eX, eY); trackTip.Show(tipText, this, e.Location); } }
source share