| Author: sudha 07 Jul 2008 | Member Level: Gold | Rating: Points: 6 |
private void textBox1_KeyPress(object sender, System.Windows.Forms.KeyPressEventArgs e) { if ( !( char.IsUpper( e.KeyChar ) || char.IsControl( e.KeyChar )) ) { e.Handled = true; } }
|
| Author: Sujit Kumar 07 Jul 2008 | Member Level: Diamond | Rating: Points: 1 |
Hi,
you can set upper case for textbox as:
textBox1.CharacterCasing=CharacterCasing.Upper
|