C#: Add ToolTip To A PictureBox
Posted by tech on
February 5, 2009
While some controls within Visual Studio include a property to have a ToolTip, some do not. Take the case of a PictureBox. Since there is no tooltip property for you to set a tooltip text, you would have to do it programmatically. The ToolTip class is part of the System.Drawing namespace. To add a tooltip to a PictureBox object, simply do this code.
ToolTip tt = new ToolTip(); tt.SetToolTip(pictureBoxObject, "This is a tooltip text");









January 20th, 2011 at 5:09 pm
What a super blog!, great content on intersting subject matter.
October 7th, 2011 at 2:42 am
It works…….
Thank you
October 7th, 2011 at 2:46 am
@lavanya: you’re welcome
March 9th, 2012 at 9:40 am
Thanks! Worked a treat.