Using tooltips in Visual Basic 2005

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • captainphoenix
    New Member
    • Mar 2007
    • 22

    Using tooltips in Visual Basic 2005

    Hi. I am very new to VB and need some basic help. I have searched the internet for weeks trying to figure this out, and so far I haven't gotten anywhere.

    How do you attach a tooltip to a button? I dragged and dropped the tooltip onto the form, and I've tried using this settooltip crap but it doesn't work. No matter what I do, when I debug I can't get the tooltip to show up when I drag the mouse over the button.

    I need someone to spell this out as if talking to a 3-year-old. Where in code do I put the settooltip? Is it under the private sub for the button or for the tooltip? Better yet, my button's name is btndeterminebuo yancy, the tooltip's name is tpdeterminebuoy ancy, and the form's name is frmdeterminebuo yancy; could someone just write out the code for me and tell me where to copy and paste it?

    thank you

    mike
  • Dököll
    Recognized Expert Top Contributor
    • Nov 2006
    • 2379

    #2
    Anyone please jump in and help Mike, I do have have VB 2005 installed...

    Mike I am not familiar with VB 2005 but I'll just bet, if you look in the Command button's properties, you should be able to type up your own tool tip text:

    (1)Using VB 6, you can add a tool tip by simply clicking once on your command button,

    (2)Find its ToolTipText block where you should type up what you want.

    I can't imagine this being any different in VB 2005, I could be wrong. Hopefully someone has an idea. I guess your properties, like VB 6.0, will be included under your View menu up above.

    If that does not do it for you Mike, come-a-knockin' again and again, you are sure to get some assistance. Good luck...

    Dököll

    Comment

    • cmrhema
      Contributor
      • Jan 2007
      • 375

      #3
      Follow microsoft kb link
      http://msdn2.microsoft .com/en-us/library/47323803(vs.80) .aspx

      Comment

      • knychtell
        New Member
        • Jan 2007
        • 66

        #4
        actually you dont physically attach a tooltip to a ctrl,
        you would only do is to add the ctrl tooltip
        then go to certain ctrl 's property then you would see the tooltip property, lets say

        btn1, add a tooltip to form then right click btn1, properties, tooltip(type any txt you prefer....

        hope this could help....

        Comment

        Working...