length
C#
1
Posts
1
Posters
0
Views
1
Watching
-
Hi I have a status bar in my main form. This status bar displays different text. I need to display a tooltip with a text (on mouse over) if the text is too large to fit into the status bar - if it's not completely visible (similar functionality as in Visual Studio). How do I determine if the length of the text string is larger than the current width of the status bar panel? Currently I'm using, e.Graphics.MeasureString, to compare length of the string in pixels to the length of the status bar panel in pixels, but that hasn't been giving me the the results I wanted. Thank you in advance -- modified at 16:58 Monday 12th September, 2005