Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

lowercase lettere and upper case lettere vb.net

3 views
Skip to first unread message

madushka930

unread,
Oct 9, 2011, 9:14:11 AM10/9/11
to
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
0 new messages