Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
On key label in vb.net
Message
 
À
17/12/2004 11:24:10
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires
Divers
Thread ID:
00970078
Message ID:
00970108
Vues:
10
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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform