Results 1 to 6 of 6

Thread: Customized tooltip

  1. #1
    seema.nare@oasis-bs.com is offline VB.NET Forum Newbie
    .NET Framework
    .NET 2.0 (VS 2005)
    Join Date
    May 2006
    Posts
    27
    Reputation
    88

    Customized tooltip

    Can I add customized tooltip (image/balloon) to my image button in VB.net ?


    Regards.

  2. #2
    JohnH's Avatar
    JohnH is offline VB.NET Forum Moderator
    .NET Framework
    .NET 4.0
    Join Date
    Dec 2005
    Location
    Norway
    Posts
    14,209
    Reputation
    2369
    You mean a regular button with image and no text?
    Code:
    Dim tt As New ToolTip()
    tt.SetToolTip(button1, "click me")
    

  3. #3
    seema.nare@oasis-bs.com is offline VB.NET Forum Newbie
    .NET Framework
    .NET 2.0 (VS 2005)
    Join Date
    May 2006
    Posts
    27
    Reputation
    88
    I have the image button. And I want to give the tooltip as another image.

  4. #4
    JohnH's Avatar
    JohnH is offline VB.NET Forum Moderator
    .NET Framework
    .NET 4.0
    Join Date
    Dec 2005
    Location
    Norway
    Posts
    14,209
    Reputation
    2369
    I'm still not sure what kind of button you are talking about, and I haven't got a clue what "give the tooltip as another image" means.

  5. #5
    jmcilhinney's Avatar
    jmcilhinney is offline VB.NET Forum Moderator
    .NET Framework
    .NET 4.0
    Join Date
    Aug 2004
    Location
    Sydney, Australia
    Posts
    11,364
    Reputation
    1544
    The ToolTip class has some new functionality in 2005. Add one to a form and check out the properties listed in the Properties window. It can be diplayed as a balloon instead of the default rectangle. It can also display a title and one of the standard icons like a MessageBox.

    Note that if you want more than that you'll have to inherit the class and handle drawing it yourself I would think.

  6. #6
    seema.nare@oasis-bs.com is offline VB.NET Forum Newbie
    .NET Framework
    .NET 2.0 (VS 2005)
    Join Date
    May 2006
    Posts
    27
    Reputation
    88
    Thanks for the solution.

Bookmarks

Posting Permissions

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