Click here to Skip to main content
15,895,142 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
AnswerRe: Medium size ERP project development using MVC 4 Pin
techyamit78-Oct-13 3:58
techyamit78-Oct-13 3:58 
AnswerRe: Medium size ERP project development using MVC 4 Pin
Paulo Augusto Kunzel9-Oct-13 5:30
professionalPaulo Augusto Kunzel9-Oct-13 5:30 
QuestionDetecting which key is pressed,vb.net Pin
srinivasankrishnaa5-Oct-13 22:43
srinivasankrishnaa5-Oct-13 22:43 
AnswerRe: Detecting which key is pressed,vb.net Pin
Eddy Vluggen6-Oct-13 0:46
professionalEddy Vluggen6-Oct-13 0:46 
AnswerRe: Detecting which key is pressed,vb.net Pin
Dave Kreskowiak6-Oct-13 4:27
mveDave Kreskowiak6-Oct-13 4:27 
GeneralRe: Detecting which key is pressed,vb.net Pin
srinivasankrishnaa7-Oct-13 2:53
srinivasankrishnaa7-Oct-13 2:53 
GeneralRe: Detecting which key is pressed,vb.net Pin
Dave Kreskowiak7-Oct-13 3:44
mveDave Kreskowiak7-Oct-13 3:44 
GeneralRe: Detecting which key is pressed,vb.net Pin
srinivasankrishnaa7-Oct-13 4:32
srinivasankrishnaa7-Oct-13 4:32 
Here is my code:-


Public Class Form1

Public Declare Function GetAsyncKeyState Lib "user32" (ByVal vkey As Int32) As Short

Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick

Dim k1, k2, k3, k4, k5, k6, k7, k8, k9, k10, k12, k13 As Boolean

k1 = GetAsyncKeyState(Keys.A)
k2 = GetAsyncKeyState(Keys.LControlKey)
k3 = GetAsyncKeyState(Keys.RControlKey)
k4 = GetAsyncKeyState(Keys.F1)
If k1 = True Then
MsgBox("Key A is Pressed")
End If

If k2 = True Then
MsgBox("Key Lcontorl is Pressed")
End If

If k3 = True Then
MsgBox("Key Rcontorl is Pressed")
End If

If k4 = True Then
MsgBox("key F1 is pressed")

End If

End Sub

End Class


This detects whether "Key A" is pressed or not but how to use it to detect whether the key pressed is small "a" or Caps "A" and similarly for other alphabets and also to detect colon,semi-colon,braces etc.

plz help me guys.
GeneralRe: Detecting which key is pressed,vb.net Pin
Dave Kreskowiak7-Oct-13 9:22
mveDave Kreskowiak7-Oct-13 9:22 
GeneralRe: Detecting which key is pressed,vb.net Pin
Eddy Vluggen7-Oct-13 5:03
professionalEddy Vluggen7-Oct-13 5:03 
GeneralRe: Detecting which key is pressed,vb.net Pin
srinivasankrishnaa7-Oct-13 5:21
srinivasankrishnaa7-Oct-13 5:21 
GeneralRe: Detecting which key is pressed,vb.net Pin
Eddy Vluggen7-Oct-13 7:14
professionalEddy Vluggen7-Oct-13 7:14 
QuestionMEF Reading Pin
Brady Kelly30-Sep-13 2:22
Brady Kelly30-Sep-13 2:22 
AnswerRe: MEF Reading Pin
Kornfeld Eliyahu Peter30-Sep-13 4:05
professionalKornfeld Eliyahu Peter30-Sep-13 4:05 
Questionkeyboard Pin
srinivasankrishnaa27-Sep-13 5:07
srinivasankrishnaa27-Sep-13 5:07 
AnswerRe: keyboard Pin
Abhinav S28-Sep-13 3:54
Abhinav S28-Sep-13 3:54 
GeneralRe: keyboard Pin
srinivasankrishnaa5-Oct-13 22:50
srinivasankrishnaa5-Oct-13 22:50 
GeneralRe: keyboard Pin
Eddy Vluggen6-Oct-13 0:47
professionalEddy Vluggen6-Oct-13 0:47 
GeneralRe: keyboard Pin
srinivasankrishnaa7-Oct-13 2:49
srinivasankrishnaa7-Oct-13 2:49 
AnswerRe: keyboard Pin
Eddy Vluggen7-Oct-13 5:01
professionalEddy Vluggen7-Oct-13 5:01 
Question“Add Project Data Source” from an OData Service does not work? Pin
Ron Deijkers26-Sep-13 2:33
Ron Deijkers26-Sep-13 2:33 
QuestionUploading the image into Server URL Custom locations Pin
Subbarayudu k25-Sep-13 22:15
Subbarayudu k25-Sep-13 22:15 
AnswerRe: Uploading the image into Server URL Custom locations Pin
Pete O'Hanlon25-Sep-13 22:37
mvePete O'Hanlon25-Sep-13 22:37 
Questionhttputility.HtmlEncode in not declared Pin
QuickBooksDev25-Sep-13 8:05
QuickBooksDev25-Sep-13 8:05 
AnswerRe: httputility.HtmlEncode in not declared Pin
Richard Deeming25-Sep-13 8:26
mveRichard Deeming25-Sep-13 8:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.