Remove Tooltip from a textbox control

Shortie

Member
Joined
Oct 20, 2005
Messages
5
Location
London
Programming Experience
Beginner
Hi there

First Post from a Newbie!

I'm trying to set up a data input validation routine and have attached it to the lostfocus routine for a textbox. It converts the textbox background colour to pink and also creates a tooltip stating "invalid input".

All good so far...

In creating this, I've used a IF...THEN...ELSE IF statement to create/remove the tooltip and I can't get it to go. I've tried REMOVEALL, ACTIVE - am confused as the reset of the background colour works fine. ie I know my condition logic/syntax is sound.

Question: How do you remove a tooltip???

Thanks muchly
Shortie
 
Hey Shortie,

Remove All should work, you could maybe be having a problem with multiple declarations. It's difficult to tell. Could you post your code or an explanation of how you're creating the tooltip.
 
if you add a tooltip to the form then every visible control gets a tooltip property, but the tooltip will only be shown if these two conditions are met:
Tooltip1.Activated = True
Textbox1.Tooltip property has text in it

so if you only want a tooltip shown for some controls and not all of them, then on the one's that you dont want it shown, dont type anything in it's tooltip property
 
Back
Top