I'm trying to achieve a parent/child layout in a combo box drop down where the parent items are not selectable and the child items are.
In the above example, if the user clicks on the parent item 'Colors' the drop down list will remain open as the item cannot be selected.
I know this is possible via MFC by subclassing the listbox control. Is it possible in Windows Forms (C#)?
The post discusses how to disable the item in the listbox, hope it helps in some extent. Or you can implement the DropDown event and do not show the item you don't need.
Microsoft is conducting an online survey to understand your opinion of the Msdn Web site. If you choose to participate, the online survey will be presented to you when you leave the Msdn Web site.
Would you like to participate?