Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP's ON KEY LABEL in .NET
Message
 
À
14/03/2007 06:08:18
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
01203273
Message ID:
01203857
Vues:
13
Robert,

I assume you are familiar with VFP's ON KEY LABEL wherein you can have a method or function and have it fired once the KEY that was assigned to do the task is pressed. The KeyPress event of a control I think is very limited. What if I want F2 function key to do something once pressed anywhere in the application? Can we do it in .NET?

>Hello Jess!
>
>I think you should take a look at the KeyPress event (on controls). Afterwards (inside the event code) you should be able to access the pressed key by using either e.Key or e.Keys (don't know for sure).
>
>BTW: .NET usercontrols / forms do have a KeyPreview property too.
>
>HTH
>
>>Guys,
>>
>>Is there any equivalent command in .NET of VFP'S ON KEY LABEL something?
>>
>>TIA
JESS S. BANAGA
Project Leader - SDD division
...shifting from VFP to C#.Net

CHARISMA simply means: "Be more concerned about making others feel good about themselves than you are in making them feel good about you."
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform