I would like to disable typing in a combobox without disabling the control. The user would still be able to use the drop-down list but would not be able to type.
How?
I would like to disable typing in a combobox without disabling the control. The user would still be able to use the drop-down list but would not be able to type.
How?
This isn't so hard. You have to capture the keypress event for that control.
Code:private: System::Void comboBox1_KeyPress(System::Object^ sender, System::Windows::Forms::KeyPressEventArgs^ e) { e->Handled = true; }
Lop
You have to do this:
myComboBox.DropDownStyle = ComboBoxStyle.DropDownList;
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks
Algorithms and Data Structures
Java tutorials
Algorithms Forum