Add ComboboxPropAndMethod.cs
This commit is contained in:
6
ComboboxPropAndMethod.cs
Normal file
6
ComboboxPropAndMethod.cs
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
// 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;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user