textbox to uppercase

Ciduletz1983

Active member
Joined
Oct 10, 2006
Messages
30
Location
Constanta, Romania
Programming Experience
Beginner
This is goin` to be a piece of cake for advanced programmers in here. Can anyone help me with this exercise :

Exercise

There is an event available to the textbox called Leave. Add another textbox to your form, and write code so that the letters in a postcode are converted to uppercase when the user clicks from your first textbox and into your second textbox.

So your first textbox might read "ts1 4jh". When the user clicks inside textbox2, the text from textbox1 should change to "TS1 4JH". The code can be written in the Leave event of textbox1.
 
Thx JuggaloBrotha .. i was thinking that`s a complicate thing.. but it was so simple.. by the way i wanted the text in textbox1 to be Uppercased .. but i amended the line .. at least here i must be on my own.

Textbox1.Text = Textbox1.Text.ToUpper()
 
Back
Top