John Cassell
Well-known member
- Joined
- Mar 20, 2007
- Messages
- 65
- Programming Experience
- Beginner
Hi There,
Can someone advise how to go about this.. The answer will help for now and also hopefully give me a better understanding of VB.NET overall..
I have 4 textboxes and I want each of them to behave as if the user always has his CAPS lock on (Regardless of whether he has or not).
At the moment I am using this type of code on all boxes to change to UCASE after they leave the box but I thought surely there is a way to tell the form (when it loads)to accept all boxes are UCASE?
If anyone can help it would be greatly appreciated.
Thanks
John
Can someone advise how to go about this.. The answer will help for now and also hopefully give me a better understanding of VB.NET overall..
I have 4 textboxes and I want each of them to behave as if the user always has his CAPS lock on (Regardless of whether he has or not).
At the moment I am using this type of code on all boxes to change to UCASE after they leave the box but I thought surely there is a way to tell the form (when it loads)to accept all boxes are UCASE?
VB.NET:
Private Sub User_NameTextBox_Leave(ByVal sender As Object, ByVal e As System.EventArgs) Handles User_NameTextBox.Leave
User_NameTextBox.Text = UCase(User_NameTextBox.Text)
End Sub
If anyone can help it would be greatly appreciated.
Thanks
John