TextBox UpperCase

G

Guest

Capture the the textbox_textChanged event and add the following code:

int x=textBox1.SelectionStart;
textBox1.Text=textBox1.Text.ToUpper();
textBox1.SelectionStart=x;

Ali Gardezi
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top