Windows Develop Bookmark and Share   
 index > Windows Forms General > Determine if List is displayed for ComboBox
 

Determine if List is displayed for ComboBox

I have a situtation where I need to not let the mouse roller change a value in a drop down list. I was able to accomplish this by trapping the 'MouseRoller' event and canceling it for a ComboBox. However, now my users want the mouse roller to be enabled if the list is displayed for a ComboBox so they can scroll through the items.

So I was wondering if there is a way to know if the list is being displayed for a ComboBox editor? I am hoping to use it in the 'MouseRoller' event and not cancel the event if the list is in fact being displayed.

Thanks in advance.
Bondforever  Thursday, November 16, 2006 4:50 PM
nobugz  Thursday, November 16, 2006 9:28 PM

I think you are looking for combo.droppedown ?

Hope that is what you are looking for.

FergusLogic  Thursday, November 16, 2006 5:19 PM
Thanks for the reply...Yes, logically that is what I am looking for, but there is no such property 'droppedown' for combo that can give me what I am looking for...Am I missing something?
Bondforever  Thursday, November 16, 2006 5:28 PM

I am using VS 05 are you?

ComboBox cb = new ComboBox();

if(cb.DroppedDown)

thanks

FergusLogic  Thursday, November 16, 2006 5:56 PM
I am sorry, I must specified earlier, I am using UltraComboBoxEditor from Infragistics...

Thanks.
Bondforever  Thursday, November 16, 2006 8:54 PM
nobugz  Thursday, November 16, 2006 9:28 PM
Thanks for the link!
Bondforever  Thursday, November 16, 2006 10:22 PM

You can use google to search for other answers

Custom Search

More Threads

• Data Entry Box and Navigation
• Implicit Error Provider
• MDI child window and buttons not responding
• Problem with saving webpage displayed by C# 2005 WebBrowser control
• Webbrowser Help needed
• Project special directories
• Accessing app settings
• Contextmenu on treeview
• Cant locate Webbrowser control current filename property
• Problem sorting custom class/collection