G Guest Feb 17, 2004 #1 How can I prevent the user from typing text in a ComboBox's TextField other than the defined items names in that ComboBox?
How can I prevent the user from typing text in a ComboBox's TextField other than the defined items names in that ComboBox?
H Herfried K. Wagner [MVP] Feb 17, 2004 #2 * "=?Utf-8?B?QW1qYWQ=?= said: How can I prevent the user from typing text in a ComboBox's TextField other than the defined items names in that ComboBox? Click to expand... Why not set its 'DropDownStyle' property to 'DropDownList'?
* "=?Utf-8?B?QW1qYWQ=?= said: How can I prevent the user from typing text in a ComboBox's TextField other than the defined items names in that ComboBox? Click to expand... Why not set its 'DropDownStyle' property to 'DropDownList'?
T Tom Shelton Feb 17, 2004 #3 How can I prevent the user from typing text in a ComboBox's TextField other than the defined items names in that ComboBox? Click to expand... You can use the combobox's FindString method in the KeyDown event to implement an autosearch. In the process, if no match is found, you could raise an error or revert it back to the previous entry... Just an idea off the top
How can I prevent the user from typing text in a ComboBox's TextField other than the defined items names in that ComboBox? Click to expand... You can use the combobox's FindString method in the KeyDown event to implement an autosearch. In the process, if no match is found, you could raise an error or revert it back to the previous entry... Just an idea off the top