lowercase lettere and upper case lettere vb.net


M

madushka930

iwant to find the pressed key is lower or upper how can i do this..
please help me... i tried this .. but i have got an same result at
every time..

Private Sub Form1_KeyPress(ByVal sender As Object, ByVal e As
System.Windows.Forms.KeyPressEventArgs) Handles Me.KeyPress

If e.KeyChar.IsLower(ChrW(Keys.A)) Then
MsgBox("a")
Else
MsgBox("A")
End If

END SUB
 
Ad

Advertisements


Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top