Hello,
I have drawn a rectangle, and would like to set a tooltip to this rectangle. For instance:
Code Snippet
Rectangle rect1 = new Rectangle(10, 70, 80, 40);
toolTip1.SetToolTip(rect1, "Please add this tool tip to my rectangle.");
However, I receive two errors with this:
1. The best overloaded method match for 'System.Windows.Forms.ToolTips.SetToolTip
(System.Windows.Forms.Control, string)' has some invalid arguments
2. Argument '1': cannot convert from 'System.Drawing.Rectangle' to
'System.Windows.Forms.Control'
So, is there another way to set a tooltip to a rectangle, or is there a way to convert a rectangle to form control?
Thanks,
Joe