ex :

while asp web project is running , i have an option for the user , if the user presses F8 key in index page he will be redirected to login page

In the same way while vb application is running i should be able to capture the key press event and redirect the user to certain form

Here user refrers to adminstrator .

Is there an option like that in visual basic

Recommended Answers

All 3 Replies

Hi, Use Key_Press event in VB6 to capture the keypress within vb application.

make a form with a textbox (txttext)
and a label (lblkeycode)

Private Sub txtText_KeyPress(KeyAscii As Integer)
    Me.lblKeyCode.Caption = KeyAscii%
End Sub
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.