469,636 Members | 1,544 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,636 developers. It's quick & easy.

Turn Caps Lock On

How do I turn Caps Lock on, when my form opens?
Nov 17 '05 #1
3 5977
I would leave the caps lock alone and code the inputs to "UpperCase"

Denis

"Mike L" <Ca***@nospam.nospam> wrote in message
news:93**********************************@microsof t.com...
How do I turn Caps Lock on, when my form opens?

Nov 17 '05 #2
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?
"Denis Dougall" wrote:
I would leave the caps lock alone and code the inputs to "UpperCase"

Denis

"Mike L" <Ca***@nospam.nospam> wrote in message
news:93**********************************@microsof t.com...
How do I turn Caps Lock on, when my form opens?


Nov 17 '05 #3
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."

Nov 17 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

18 posts views Thread by Robert | last post: by
2 posts views Thread by GSX | last post: by
1 post views Thread by Brian Parker | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.