By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,956 Members | 1,722 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,956 IT Pros & Developers. It's quick & easy.

How to accept only Propper Case characters in a textbox in vb.net?

P: 9
How to accept only Propper Case characters in a textbox in vb.net? help please.
Feb 9 '16 #1
Share this Question
Share on Google+
2 Replies


100+
P: 293
As per my knowledge, you can write the code to update the text accordingly in lostfocus or keypress event.

Hope this helps.
Feb 9 '16 #2

100+
P: 299
As madankarmukta said, you will have to use code to do the update. One thing I noticed while testing is that the cursor would go back to the beginning of the string, so I used the following code under a keyup event to accomplish what you're after:

Expand|Select|Wrap|Line Numbers
  1. TextBox1.Text = TextBox1.Text.ToUpper()
  2. TextBox1.Select(TextBox1.Text.Length + 1, 1)
Feb 11 '16 #3

Post your reply

Sign in to post your reply or Sign up for a free account.