Click here to Skip to main content
15,913,773 members
Home / Discussions / C#
   

C#

 
GeneralRe: Joint Collection Project Pin
Nemanja Trifunovic30-Mar-04 7:55
Nemanja Trifunovic30-Mar-04 7:55 
GeneralRe: Joint Collection Project Pin
Jonathan de Halleux30-Mar-04 8:00
Jonathan de Halleux30-Mar-04 8:00 
GeneralRe: Joint Collection Project Pin
Heath Stewart30-Mar-04 8:48
protectorHeath Stewart30-Mar-04 8:48 
GeneralRe: Joint Collection Project Pin
Jonathan de Halleux30-Mar-04 8:52
Jonathan de Halleux30-Mar-04 8:52 
GeneralRe: Joint Collection Project Pin
Heath Stewart30-Mar-04 8:54
protectorHeath Stewart30-Mar-04 8:54 
GeneralRe: Joint Collection Project Pin
Jonathan de Halleux30-Mar-04 8:57
Jonathan de Halleux30-Mar-04 8:57 
QuestionDynamic tooltip text using MouseOver event? Pin
LongRange.Shooter30-Mar-04 7:03
LongRange.Shooter30-Mar-04 7:03 
AnswerRe: Dynamic tooltip text using MouseOver event? Pin
Heath Stewart30-Mar-04 8:46
protectorHeath Stewart30-Mar-04 8:46 
You can always use the static Control.MousePosition property to get a Point in screen coordinates, which you can translate by passing that Point to the PointToClient method of the ListBox. Using that, you can find which item is under the cursor.

Unless you want to go to the trouble of encapsulating the ToolTip common control and all its messages and what-not, you could use the ToolTip component and call SetToolTip(yourListBox, "Your tooltip"), but I'm not sure exactly how that positions itself (I would assume it uses the coordinates of the current mouse position like it usually does). You can call that each time you want to change the text.

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: Dynamic tooltip text using MouseOver event? Pin
LongRange.Shooter1-Apr-04 10:38
LongRange.Shooter1-Apr-04 10:38 
GeneralSystem.Reflection Pin
Peter Nirschl30-Mar-04 7:02
Peter Nirschl30-Mar-04 7:02 
GeneralRe: System.Reflection Pin
Guillermo Rivero30-Mar-04 7:21
Guillermo Rivero30-Mar-04 7:21 
GeneralProblems starting a WindowsService on win2k Server. Pin
Knappen30-Mar-04 6:49
Knappen30-Mar-04 6:49 
GeneralRe: Problems starting a WindowsService on win2k Server. Pin
Heath Stewart30-Mar-04 8:41
protectorHeath Stewart30-Mar-04 8:41 
GeneralInterop Question Pin
DrGreen30-Mar-04 6:47
DrGreen30-Mar-04 6:47 
GeneralRe: Interop Question Pin
leppie30-Mar-04 7:48
leppie30-Mar-04 7:48 
GeneralRe: Interop Question Pin
DrGreen30-Mar-04 8:30
DrGreen30-Mar-04 8:30 
GeneralRe: Interop Question Pin
Heath Stewart30-Mar-04 8:37
protectorHeath Stewart30-Mar-04 8:37 
Generalresizable panel Pin
cmarmr30-Mar-04 5:43
cmarmr30-Mar-04 5:43 
GeneralRe: resizable panel Pin
Peter Nirschl30-Mar-04 6:07
Peter Nirschl30-Mar-04 6:07 
GeneralRe: resizable panel Pin
cmarmr30-Mar-04 6:23
cmarmr30-Mar-04 6:23 
GeneralRe: resizable panel Pin
Heath Stewart30-Mar-04 6:25
protectorHeath Stewart30-Mar-04 6:25 
GeneralRe: resizable panel Pin
cmarmr30-Mar-04 7:02
cmarmr30-Mar-04 7:02 
GeneralRe: resizable panel Pin
Heath Stewart30-Mar-04 8:33
protectorHeath Stewart30-Mar-04 8:33 
GeneralPicture Flickering(Lagg) Pin
Anonymous30-Mar-04 3:56
Anonymous30-Mar-04 3:56 
GeneralRe: Picture Flickering(Lagg) Pin
Heath Stewart30-Mar-04 4:33
protectorHeath Stewart30-Mar-04 4:33 

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.