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."