473,320 Members | 2,104 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

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

How to accept only Propper Case characters in a textbox in vb.net? help please.
Feb 9 '16 #1
2 1650
madankarmukta
308 256MB
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
Luk3r
300 256MB
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

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

Similar topics

2
by: Jason | last post by:
I need to split a string in two if there are lowercase characters at the end of it. For example: 'AAPLpr' becomes 'AAPL' and 'pr' 'Ta' becomes 'T' and 'a' 'MSFT' ...
22
by: DJ | last post by:
Can someone tell me the library call that converts strings to lower case or retrns a new string that is lower case of the original, thanks im using <string> David
2
by: Bart Verbeke | last post by:
Hi, I have a form with 2 radio buttons (ACCEPT/REJECT). When the page is initially loaded, no textbox should be visible. When a user clicks the REJECT radio button, a textbox should...
6
by: Sidney Mark Croy | last post by:
Greetings In VB6 you could change case to upper or lower within the KeyPress event handling. How do you accomplish that within VB.NET? Thank you SMCroy
4
by: possibilitybox | last post by:
I'm trying to make a unicode friendly regexp to grab sentences reasonably reliably for as many unicode languages as possible, focusing on european languages first, hence it'd be useful to be able...
3
by: zainally | last post by:
I want to detect uppercase characters in a string and separate the two words in it by a space. I know I can use preg_replace for it, but I am not very good at regular expressions. Can someone help?...
4
by: Martin.Kunc | last post by:
Hallo all, I need to make an textbox to accept only Cyrilic characters. I couldn't found any solution except enumerate characters for filtering (seems odd). Please has anyone any ideas ? Thank...
5
by: =?Utf-8?B?cmtibmFpcg==?= | last post by:
How can I force the users to enter characters in uppercase? I want to do this in a TextBox control of an aspx page. Then I want the same to be moved to inside a GridView control. Thanks.
5
by: meena83 | last post by:
hi, i have to enter a value in a textbox that should accept only alphabets and not digits should accept only 4 characters the first should be caps and the other must be small --how can i do this .
4
by: Erkano Timenon | last post by:
I am trying to create a password entry textbox on a form. I would like to not allow single quotes, double quotes, the pound sign, ... etc. but want to accept other printable characters. I want the...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.