Add ComboboxPropAndMethod.cs

This commit is contained in:
2024-07-19 08:38:09 -05:00
parent f58dc1d7f3
commit 67ca149fdb

6
ComboboxPropAndMethod.cs Normal file
View 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;
}