Windows Develop Bookmark and Share   
 index > Windows Forms General > How can I catch the event that occur before a item is selected in System.Windows.Forms.ListBox control?
 

How can I catch the event that occur before a item is selected in System.Windows.Forms.ListBox control?

Even MouseDown event is fired after a item is selected. I cannot find an earlier event any more. Is there an corresponding event or any event that can indicate this? Thank you!
tankbattle  Thursday, May 31, 2007 3:19 AM
Use MouseMove() and ListBox.IndexFromPoint() to see the mouse over the item before it is selected.
nobugz  Thursday, May 31, 2007 6:39 PM
So the last option will be MouseHover event which occurs when the mouse remains stationary inside of the control for an amount of time.
Moayad Mardini  Thursday, May 31, 2007 6:33 AM
Thank you for your reply. Though the answer is not desirable. Right now, this problem is not serious for me since I've found a work-around.
tankbattle  Thursday, May 31, 2007 6:38 AM
Use MouseMove() and ListBox.IndexFromPoint() to see the mouse over the item before it is selected.
nobugz  Thursday, May 31, 2007 6:39 PM

You can use google to search for other answers

Custom Search

More Threads

• Interfacing with ID card printer
• Help
• OwnedForms/Owner/ShowDialog
• change splitter color
• How to apply 'tab' in text file and click specific coordiantes on screen automatically
• multiline text in listview ?
• Could not find any resources appropriate for the specified culture or the neutral culture. Images on a form
• fullrowselect not work when treelines=true
• A small problem concerning to commandlines in tc
• Obfuscating Web Reference Problem