To address your comments... #1. I believe the lack of ability to select text with the mouse in the ComboBox is a known bug. I have seen others say it will be fixed in the future.
#2. When you are just trying to bind a ComboBox, use SelectedItem if the values are a simple list of text items. If the values have a Display/Value member set, then use SelectedValue. Write back if you have any more issues. Brian -----Original Message----- From: Peter Stephens [mailto:[EMAIL PROTECTED]] Sent: Friday, April 12, 2002 11:15 PM To: [EMAIL PROTECTED] Subject: [DOTNET] Braindead Winforms ComboBox Is it my imagination or is the ComboBox seriously broken? Maybe it is just my "luck" that I am trying to use it in a way no one else is using it... Problem #1: When in DropDown mode (not DropDownList) even you can select and manipulate text with the keyboard (Shift+End to select, etc) the mouse is inoperative. You cannot select text with the mouse. Maybe this is the behavior of the stock Win32 combo, but it is rather annoying nonetheless. Problem #2: Simple binding with DropDown style. I just want to bind the currently selected value to a DataSet field. The list of items are populated by using .Items.AddRange(new Object[] { "Item1", "Item2", "etc..." }); Unfortunately none of the standard binding properties seem to work as advertised. The docs say that if ValueMember and DisplayMember are String.Empty then the ComboBox will use .ToString() on the objects in the array. So SelectedValue should be the .ToString() value of my currently selected array element. Instead I find that SelectedValue is null. SelectedIndex is correct but doesn't help me. Text is correct, but the TextChanged event does not fire and so the binding doesn't detect the change. So what can I bind to? All I need is the text that is displayed to be bound to my DataSet field. Will using a RowSource compatible object instead of an array of Objects work more effectively? Feedback is much appreciated! -- Peter You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com. You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.