diff --git a/ComboboxPropAndMethod.cs b/ComboboxPropAndMethod.cs new file mode 100644 index 0000000..73bdd33 --- /dev/null +++ b/ComboboxPropAndMethod.cs @@ -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; +} \ No newline at end of file