Set Tooltip to Coordinate Area of Form
C#
2
Posts
1
Posters
0
Views
1
Watching
-
Is there anyway to set a tooltip for a certain coordinate area of a form and not to a specific control?
I figured out one way to do it, but I don't know if it's the most efficient. This is what I did:
private void Form1_MouseMove(object sender, MouseEventArgs e) { if (e.X > 15 && e.X < 45 && e.Y > 35 && e.Y < 60) trackTip.Show("1", this, 20, 45); else if (e.X > 45 && e.X < 75 && e.Y > 35 && e.Y < 60) trackTip.Show("2", this, 55, 45); else trackTip.Hide(this); }
is this the best way to do it?