Click here to Skip to main content
15,891,692 members
Home / Discussions / C#
   

C#

 
GeneralRe: ListViewSubItem Pin
Heath Stewart17-Feb-04 13:22
protectorHeath Stewart17-Feb-04 13:22 
GeneralRe: ListViewSubItem Pin
Werdna17-Feb-04 13:32
Werdna17-Feb-04 13:32 
GeneralMap a Network Drive in C# Pin
Guinness4Strength17-Feb-04 10:53
Guinness4Strength17-Feb-04 10:53 
GeneralRe: Map a Network Drive in C# Pin
Tom Larsen17-Feb-04 11:59
Tom Larsen17-Feb-04 11:59 
GeneralRe: Map a Network Drive in C# Pin
Heath Stewart17-Feb-04 12:45
protectorHeath Stewart17-Feb-04 12:45 
GeneralRe: Map a Network Drive in C# Pin
Guinness4Strength17-Feb-04 13:39
Guinness4Strength17-Feb-04 13:39 
Generalhard problem with EVENTs Pin
Snowjim17-Feb-04 10:28
Snowjim17-Feb-04 10:28 
GeneralRe: hard problem with EVENTs Pin
Heath Stewart17-Feb-04 12:53
protectorHeath Stewart17-Feb-04 12:53 
The List View common control - which the Windows Forms ListView encapsulates - handles most of this internally and some notification messages don't raise events as you might think (the MouseMove event is not overridden, and the List View common control handles this differently so the default behavior won't work).

Instead, you'll have to extend the ListView control, override WndProc, and handle the LVN_GETINFOTIP message (-157 on Windows (98/ME), -158 on Windows NT (NT/2000/XP/2003/and all future Windows OSes)). This is a WM_NOTIFY (message ID 78) notification message, so you'll actually get a pointer to an NMHDR struct in the LParam, which you can use Marshal.PtrToStructure to get.

For more information, see the documentation on the LVN_GETINFOTIP[^] notification message in the Platform SDK on MSDN Online.

You might also search CodeProject since there's many articles on customizing ListView, though I don't remember any dealing with tool tips off the top of my head.

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: hard problem with EVENTs Pin
Snowjim17-Feb-04 13:01
Snowjim17-Feb-04 13:01 
GeneralRe: hard problem with EVENTs Pin
Heath Stewart17-Feb-04 13:18
protectorHeath Stewart17-Feb-04 13:18 
GeneralRe: hard problem with EVENTs Pin
Snowjim17-Feb-04 13:34
Snowjim17-Feb-04 13:34 
GeneralRe: hard problem with EVENTs Pin
Snowjim17-Feb-04 13:47
Snowjim17-Feb-04 13:47 
GeneralRe: hard problem with EVENTs Pin
Heath Stewart17-Feb-04 19:28
protectorHeath Stewart17-Feb-04 19:28 
GeneralRe: hard problem with EVENTs Pin
Anonymous17-Feb-04 22:47
Anonymous17-Feb-04 22:47 
GeneralRe: hard problem with EVENTs Pin
Snowjim17-Feb-04 23:27
Snowjim17-Feb-04 23:27 
GeneralRe: hard problem with EVENTs Pin
Heath Stewart18-Feb-04 4:02
protectorHeath Stewart18-Feb-04 4:02 
GeneralRe: hard problem with EVENTs Pin
Heath Stewart18-Feb-04 3:55
protectorHeath Stewart18-Feb-04 3:55 
GeneralRe: hard problem with EVENTs Pin
Snowjim18-Feb-04 11:49
Snowjim18-Feb-04 11:49 
GeneralRe: hard problem with EVENTs Pin
Heath Stewart19-Feb-04 3:00
protectorHeath Stewart19-Feb-04 3:00 
GeneralRe: hard problem with EVENTs Pin
Snowjim19-Feb-04 4:22
Snowjim19-Feb-04 4:22 
GeneralUm.... Long Day Help Pin
obelisk2917-Feb-04 10:14
obelisk2917-Feb-04 10:14 
GeneralRe: Um.... Long Day Help Pin
bneacetp18-Feb-04 2:15
bneacetp18-Feb-04 2:15 
GeneralRe: Um.... Long Day Help Pin
LongRange.Shooter18-Feb-04 3:01
LongRange.Shooter18-Feb-04 3:01 
QuestionA bug in VS 2003??? Pin
LongRange.Shooter17-Feb-04 9:43
LongRange.Shooter17-Feb-04 9:43 
AnswerRe: A bug in VS 2003??? Pin
Heath Stewart17-Feb-04 12:42
protectorHeath Stewart17-Feb-04 12:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.