Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 233415
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T20:05:56+00:00 2026-05-11T20:05:56+00:00

I have a ListView where several items have more text than fits in the

  • 0

I have a ListView where several items have more text than fits in the column width. ShowItemToolTips means i can hover over a column and see the full text which is great.

However, for really long texts, it disappears before there is time to read everything, so i would like to make it stay longer (or possibly until the dismissed manually, eg by moving away the mouse or clicking. How do I do this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-11T20:05:57+00:00Added an answer on May 11, 2026 at 8:05 pm

    You know, of course, that underneath the .NET ListView class is a Windows listview control. This listview control uses a Windows tooltip control to show the truncated strings.

    You can get hold of this underlying tooltip control through the LVM_GETTOOLTIPS message.

    [DllImport("user32.dll", CharSet = CharSet.Auto)]
    public static extern IntPtr SendMessage(IntPtr hWnd, int msg, 
                                            int wParam, int lParam);
    
    public IntPtr GetTooltipControl(ListView lv) {
        const int LVM_GETTOOLTIPS = 0x1000 + 78;
        return SendMessage(lv.handle, LVM_GETTOOLTIPS, 0, 0);
    }
    

    Once you have the handle to the tooltip control, you can send messages to it.

    public void SetTooltipDelay(ListView lv, int showTime) {
       const int TTM_SETDELAYTIME = 0x400 + 3;
       const int TTDT_AUTOPOP = 2;
    
       IntPtr tooltip = this.GetTooltipControl(lv);
       if (tooltip != IntPtr.Zero) {
          SendMessage(tooltip, TTM_SETDELAYTIME, TTDT_AUTOPOP, showTime);
       }
    }
    

    showTime is the number of milliseconds you want the control to stay visible.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a listview with several items that are created dynamically, each has two
I have a WPF ListView with many items in it. When I select several
Say I have a listview control with several items in it. How would I
I have a listview where I add several columns: LVCOLUMN column; column.mask = LVCF_FMT
I have a ListView with several rows, and the user can start async tasks
I have a listview with several columns. I want to change the column header
What I want to do I have several items in a ListView. When I
How can I recreate listView? I have listView with items containing few TextViews and
I have ListView that uses a GridView to display several columns of data. Two
Background: I have a ListView / GridView with several columns. In some situations, only

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.