Picturebox tooltips
-
Hi, I have a picture box that has mousemove event. I check to see whether the mouse is between certain cords and if it matchs one of the if statements, it should display a tooltip. The problem is that since im using the mousemove event the tooltip is being redraw everytime the mouse is moved which causes some visual problems, e.g: the picture box displays alot of tooltips. Any ideas? Regards, Gareth.
-
Hi, I have a picture box that has mousemove event. I check to see whether the mouse is between certain cords and if it matchs one of the if statements, it should display a tooltip. The problem is that since im using the mousemove event the tooltip is being redraw everytime the mouse is moved which causes some visual problems, e.g: the picture box displays alot of tooltips. Any ideas? Regards, Gareth.
Create a boolean field in your class indicating if a tool tip is being shown. Only show a new tool tip if the field indicates there is no tool tip being shown.
Tech, life, family, faith: Give me a visit. I'm currently blogging about: The Lord's Prayer in Aramaic song (audio) The apostle Paul, modernly speaking: Epistles of Paul Judah Himango
-
Create a boolean field in your class indicating if a tool tip is being shown. Only show a new tool tip if the field indicates there is no tool tip being shown.
Tech, life, family, faith: Give me a visit. I'm currently blogging about: The Lord's Prayer in Aramaic song (audio) The apostle Paul, modernly speaking: Epistles of Paul Judah Himango
-
Judah, I cant do that really since i want to show different tooltips for different areas of the picture box, thus i'd need to create a bool for each tooltip which seems like abit of a hash. Surly theres a better way? Regards, Gareth.
-
if you use the variable like he suggested, then check the tooltip text to the text you want to show if they are the same don't update otherwise update the tooltip