Change Case: Uppercase and Lowercase for VB.NET
Submitted by donbermoy on Wednesday, April 30, 2014 - 18:00.
Due to the complexity of our code, sometimes we often forget those basics in programming. Here, in this tutorial i will teach you how to change case either uppercase or lowercase letters using vb.net.
Now, let's start this tutorial!
1. Let's start with creating a Windows Form Application for this tutorial by following the following steps in Microsoft Visual Studio: Go to File, click New Project, and choose Windows Application.
2. Next, add two Buttons named Button1 and labeled it as "Uppercase" and Button2 labeled as "Lowercase". Insert two textbox named Textbox1 for inputting a desired string and Textbox2 for displaying the output. You must design your interface like this:
3. For button1, put this code below.
UCase function in vb.net converts the text to uppercase letters. This is why the button1 means an uppercase button to display the capital letters in textbox2.
4. For button2, put this code below.
The opposite of the UCase is the LCase. LCase function means convert the string into Lowercase letters. This will display small letters in textbox2.
Output:
For more inquiries and need programmer for your thesis systems in any kind of programming languages, just contact my number below.
Best Regards,
Engr. Lyndon Bermoy
IT Instructor/System Developer/Android Developer/Freelance Programmer
Mobile: 09488225971
Landline: 826-9296
E-mail:[email protected]
Add and Follow me on Facebook: https://www.facebook.com/donzzsky
Visit and like my page on Facebook at: https://www.facebook.com/BermzISware
- Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
- End Sub
- Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
- End Sub
Add new comment
- 2303 views