want to Display Upper Case Letters in Text Box while Pressing Lower Case Letters ?
-
want to Display Upper Case Letters in Text Box while Pressing Lower Case Letters, I tried with Private Sub Text1_KeyPress(KeyAscii As Integer) If KeyAscii >= 65 And KeyAscii <= 122 Then Text1.Text = UCase(Text1.text) End If End Sub but it is printing in reverse , is there any other mothods.
-
want to Display Upper Case Letters in Text Box while Pressing Lower Case Letters, I tried with Private Sub Text1_KeyPress(KeyAscii As Integer) If KeyAscii >= 65 And KeyAscii <= 122 Then Text1.Text = UCase(Text1.text) End If End Sub but it is printing in reverse , is there any other mothods.
pramod2517 wrote:
want to Display Upper Case Letters in Text Box while Pressing Lower Case Letters, I tried with Private Sub Text1_KeyPress(KeyAscii As Integer) If KeyAscii >= 65 And KeyAscii <= 122 Then Text1.Text = UCase(Text1.text) End If End Sub
I am sure that your are not doing it in ASP.NET. :rolleyes:
cheers, Abhijit CodeProject MVP
-
want to Display Upper Case Letters in Text Box while Pressing Lower Case Letters, I tried with Private Sub Text1_KeyPress(KeyAscii As Integer) If KeyAscii >= 65 And KeyAscii <= 122 Then Text1.Text = UCase(Text1.text) End If End Sub but it is printing in reverse , is there any other mothods.
Hi Pramod You can try this "set a css style and use text-transform:uppercase in the rule to display uppercase in the web site - regardless of the text entered" .changecase{text-transform:uppercase ;}
-
pramod2517 wrote:
want to Display Upper Case Letters in Text Box while Pressing Lower Case Letters, I tried with Private Sub Text1_KeyPress(KeyAscii As Integer) If KeyAscii >= 65 And KeyAscii <= 122 Then Text1.Text = UCase(Text1.text) End If End Sub
I am sure that your are not doing it in ASP.NET. :rolleyes:
cheers, Abhijit CodeProject MVP
iam writing code in windows application
-
Hi Pramod You can try this "set a css style and use text-transform:uppercase in the rule to display uppercase in the web site - regardless of the text entered" .changecase{text-transform:uppercase ;}
ok its successfully working.But i want windows application
-
iam writing code in windows application
pramod2517 wrote:
iam writing code in windows application
Ya.. you code already says that. :zzz: This is ASP.NET Forum, Please post it to C# forum.
cheers, Abhijit CodeProject MVP
-
want to Display Upper Case Letters in Text Box while Pressing Lower Case Letters, I tried with Private Sub Text1_KeyPress(KeyAscii As Integer) If KeyAscii >= 65 And KeyAscii <= 122 Then Text1.Text = UCase(Text1.text) End If End Sub but it is printing in reverse , is there any other mothods.
There is a property of textbox in window application CharacterString=Upper pls try it and then reply Thank You