Hi , i have a list box and i want that when the user hovers over an item , a form is shown next to the mouse and stays as long as the mouse is over that item then disappears after the mouse leaves the item.
I Know how to show the form and how to handle the item hover event in the list box , all i am missing is how to show the form by the mouse..
Any Help ??
Thnx in advanced...
medopunsher
0
Light Poster
Recommended Answers
Jump to PostShouldn't be anything more complicated than
Form1 F = new Form1(); F.Show(); F.SetDesktopLocation(Cursor.Position.X, Cursor.Position.Y);
if you use Control.MousePosition you will have to convert pointtoscreen.
Jump to PostDiamondDrake is totally right, there is no single 'right' way to do something in code (although there are many many wrong ways :p ), i have played around with using a popup form in the past but had some problems with positioning it when it appeared etc. In the end …
All 5 Replies
Ionelul
7
Junior Poster in Training
Diamonddrake
397
Master Poster
ddanbe
commented:
Good explanation!
+6
Geekitygeek
480
Nearly a Posting Virtuoso
Diamonddrake
397
Master Poster
Geekitygeek
480
Nearly a Posting Virtuoso
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.