6 lines
199 B
C#
6 lines
199 B
C#
// Changing Combobox text to Uppercase on KeyPress
|
|
|
|
private void ComboBox_KeyPress(object sender, KeyPressEventArgs e) {
|
|
if (e.KeyChar >= 'a' && e.KeyChar <= 'z')
|
|
e.KeyChar -= (char)32;
|
|
} |