Results 1 to 4 of 4

Thread: alt tag

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Nov 1999
    Posts
    65

    Post

    on some programs when your cursor goes over a button for example a little message similar to the alt tag in web pages pops up how do you do this in vb?

  2. #2
    Hyperactive Member Gimpster's Avatar
    Join Date
    Oct 1999
    Location
    Redmond, WA 98052
    Posts
    331

    Post

    It is called "ToolTipText" and you set it in the properties window of the object you want to set the tool tip for. Just type in the text that you want displayed and that's all you have to do. The next time you run your program and the cursor goes over that object, you will see your tool tip.

    ------------------
    Ryan
    corneslen@hotmail.com
    ICQ# 47799046

  3. #3
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,175

    Post

    Do you mean Combo1.ToolTipText = "My message"?

    ------------------
    Marty

  4. #4
    Hyperactive Member Gimpster's Avatar
    Join Date
    Oct 1999
    Location
    Redmond, WA 98052
    Posts
    331

    Post

    Yup, that's exactly how you would do it, if you needed to set the ToolTipText at runtime. Otherwise it's equally easy to just set it at design time in the properties menu.

    ------------------
    Ryan
    corneslen@hotmail.com
    ICQ# 47799046

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width