Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with activecontrol
Message
From
02/08/2006 13:43:43
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
To
02/08/2006 10:22:28
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01142405
Message ID:
01142491
Views:
15
This message has been marked as a message which has helped to the initial question of the thread.
>Here is another problem !!! :-)
>I have a grid in the second page of a Pageframe, there is not only the grid but other controls in this page.
>What i'd like to do is to change page if I hit the enter key inside the grid.
>
>I would like to put code in each control of the grid so i was thinking to put it in the form's keypress event.
>I try to test the activecontrol and if it was the grid I did the job. But the activecontrol property daes not work in this case.
>I alsoi tried to put the code in the grid's keypress but it seems it does not work....
>What should I do ? And don't tell me I'd better try with another work :-)

Why don't you do that in grid.AfterRowColChange - this.parent.activepage=1 or whatever. You may check for lastkey()=13 there.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform