ListView and tooltips on a ColumnHeader

Richard Kucia <[email protected]> Fri, 28 Mar 2008 20:32:16 +0000
Newsgroups gmane.comp.windows.devel.dotnet.clr
Message-ID <032820082032.22013.47ED55D00007DC41000055FD22216128369B0A02D29B9B0EBF0E070C9A05069D@att.net>
Now this was a surprise. I wanted to show tooltips on the ColumnHeader of a ListView in details mode. Seemed like a simple enough task, but there doesn't seem to be a straightforward way to do this.

I found out that the MouseHover event fires for a ListView but not if the mouse is over a ColumnHeader. That really surprised me.

Similarly, the ToolTip object won't fire an event when the mouse is over a ColumnHeader.

A little googling shows that this has been a long-term problem. Some solutions that have been offered include handling the MouseMove event, but that seems like too much CPU time to burn -- even the solutions offered include that warning. And besides, if the above methods don't work, I would guess that MouseMove would also come up short, unless I'm watching MouseMove over the entire form (ugh).

Any ideas, anyone? Thanks.

Rick Kucia

===================================
This list is hosted by DevelopMentorĀ®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com