KeyDown VB.NET, Newbie

vidiware

Active member
Joined
Dec 3, 2002
Messages
39
Hi!
Im new here and Im just asking how you can perform a sucessful KEYDOWN in Visual Basic .NET.
When Im writing

Private Sub frmGame_KeyDown(ByVal keycode As Integer, ByVal Shift As Integer)
If keycode = vbkeyup Then End
End Sub

Something problemo is about the vbkey up thing...
This worked in 6.0, but can you write a key down example in .NET?
 
Code:
    Private Sub frmGame_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles MyBase.KeyDown
    you can use ...  e.KeyCode plus other methods within
    End Sub
 
Thank you... very much...
but a it was a lot more complicated than VB6.0
 
Last edited by a moderator:
Go into the forms properties, CancelButton should equal whatever button you use to Close the form.
 
Back
Top