>Dear all,
>
>I have a formset which have 2 forms FORM1 and FORM2. In both of forms, there is a button with hot key Alt-A. When I presses a button in FORM1, it will setfocus to FORM2. Then when I want to use FORM2's Alt-A button, it will access FORM1's Alt-A button but not FORM2's. I think both forms are opening and I don't want to close FORM1 first before the focus goes to FORM2. How could I solve this problem?
>
>Power
Hi:
I bumped into that one a long time ago.
One workaround is to use a PageFrame instead of a FormSet.
You can put the same button with the same hot-key in different pages and it will work OK.
If your forms have lots of controls it's even better since you can
load the controls for each page on the Activate event for each page, this way the form containing the PageFrame loads faster.
There might be a way to do it with a FormSet but since my forms had LOTS of control I took the PageFrame approach.
Hope that helps.
R. Davila
DBA / Network Administrator
Administracion de Fomento Comercial
Gobierno de Puerto Rico
Still waiting for FoxPro for LINUX