Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP's ON KEY LABEL in .NET
Message
 
 
To
14/03/2007 06:08:18
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
01203273
Message ID:
01203857
Views:
11
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."
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform