Turn Caps Lock On

  • Thread starter Thread starter Guest
  • Start date Start date
I tried coding the keypress method on the form to uppercase e.KeyCode, but it
didn't work.

What is the code to make the input uppercase?
What is the code to turn on caps lock?
 
Hi Cadel,

You can use the following code to change all the texts in the TextBox to
upper case.

private void textBox1_TextChanged(object sender, System.EventArgs e)
{
this.textBox1.Text = this.textBox1.Text.ToUpper();
this.textBox1.Select(this.textBox1.Text.Length,0);
}

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."
 

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

Back
Top