General discussion

Locked

Tool Tips

By mansuk ·
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

This conversation is currently closed to new comments.

5 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

Tool Tips

by Peyison In reply to Tool Tips

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.

Collapse -

Tool Tips

by mansuk In reply to Tool Tips

useful tip. Thanx

Collapse -

Tool Tips

by RSV In reply to Tool Tips

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...:)

Collapse -

Tool Tips

by mansuk In reply to Tool Tips

useful tip. Thanx

Collapse -

Tool Tips

by mansuk In reply to Tool Tips

This question was closed by the author

Back to Web Development Forum
5 total posts (Page 1 of 1)  

Related Discussions

Related Forums