vidiware Posted December 3, 2002 Posted December 3, 2002 Hi! Im new here and I'm just asking how you can perform a sucessful KEYDOWN in Visual Basic .NET. When I'm 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? Quote
Moderators Robby Posted December 3, 2002 Moderators Posted December 3, 2002 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 Quote Visit...Bassic Software
vidiware Posted December 3, 2002 Author Posted December 3, 2002 (edited) Thank you... very much... but a it was a lot more complicated than VB6.0 Edited December 3, 2002 by vidiware Quote
Moderators Robby Posted December 3, 2002 Moderators Posted December 3, 2002 Go into the form's properties, CancelButton should equal whatever button you use to Close the form. Quote Visit...Bassic Software
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.