Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
On key label in vb.net
Message
 
To
17/12/2004 11:24:10
General information
Forum:
ASP.NET
Category:
Forms
Miscellaneous
Thread ID:
00970078
Message ID:
00970108
Views:
11
I just cant seem the find the equivilent command in Vb.net.

I need to map the F5 key to a a sub called save and for some reason I annot find how to do this in vb.net and it is driving me insane!! :)


In the world of C# the windows form has an event called KeyDown that you subscribe to. I'm sure the VB.NET Windows Forms has the same event since they are subclass from the same namespace and class.

You're code would look something like:

If e.KeyValue.ToString() == "116" Then
me.ExecuteMethod()
End If

I'm not familiar with VB.NET but I'm sure you can figure it out from there.
Previous
Reply
Map
View

Click here to load this message in the networking platform