Tool Tips
Can I have a program in VB where each control should be able to display tool tips whenever it receives the focus (using TAB not by mouse).
Thank you
Web Development
Can I have a program in VB where each control should be able to display tool tips whenever it receives the focus (using TAB not by mouse).
Thank you
by peyison
There is no easy way to implement tooltips without the mouse, since the built-in tooltips are mouse driven. There are other things you can do to get a similiar effect.
You can put a message on a status bar based on the current control, or put a label on your form and change the caption based on the current control. You can use the control's GotFocus event to change the text to the appropriate message.
If you're really tied to the tooltip idea, you could do your own. Just make a new form,no border, background yellow, add a label, resize the label and form based on the text - then display it from the GotFocus event of each control.
Let me know if you want more info.
by mansuk
by rsv
HI,
If you want to display Tooltips without using mouse, there is not built-ins for this, you have to do by yourself.
Put a label, set its properties, visible=false, autosize=true, backcolor=yellow. On the Gotfocus event of the control, change theproperties of the Label, caption="whatever u want", visible=true, top=control.top+control.height, left=control.left. Like this u can display the label as a tooltip for every control on the form.
Hope this is helpful for you.
Good Luck...:)
by mansuk
by mansuk
This discussion is closed to new replies.
Sort by Trending