CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6
  1. #1
    Join Date
    May 2002
    Posts
    121

    add a tooltip message to listview

    Hi, I want to add a tooltip message to my buttons and list view items. Is there a built in funtion that can make it easy for me?

    Please point me in the right direction

    Thanks!

  2. #2
    Join Date
    May 2002
    Location
    Atlanta,GA
    Posts
    262

    Re: add a tooltip message to listview

    Originally posted by dky1e
    Hi, I want to add a tooltip message to my buttons and list view items. Is there a built in funtion that can make it easy for me?

    Please point me in the right direction

    Thanks!
    Code:
    public void SetupToolTips() { 
      Tooltip t = new ToolTip(this.components);
      
      t.SetToolTip(mylistview,"My list view");
    }
    Jared

  3. #3
    Join Date
    May 2002
    Posts
    121
    Thanks!

    But how can I attach the tooltip to each of the items?

  4. #4
    Join Date
    May 2002
    Location
    Atlanta,GA
    Posts
    262
    Originally posted by dky1e
    Thanks!

    But how can I attach the tooltip to each of the items?
    Keep calling SetToolTip() for each item you want to set a tooltip for
    Jared

  5. #5
    Join Date
    May 2002
    Posts
    121
    I'm sorry, I don't understand. I tried doing setTooltip( listviewitem,"adf"); but it doesnt allow me to do that.

    Could you post a quick sample? Thanks.

  6. #6
    Join Date
    May 2002
    Location
    Atlanta,GA
    Posts
    262
    Originally posted by dky1e
    I'm sorry, I don't understand. I tried doing setTooltip( listviewitem,"adf"); but it doesnt allow me to do that.

    Could you post a quick sample? Thanks.
    Check out htis Article on MSDN. it's the best source that I know of.

    http://msdn.microsoft.com/library/de...classtopic.asp
    Jared

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

Featured