Chuck,
Sorry, been a long night (beta testing... ahhh)... personally, in the form in question (myForm), open in design mode, goto
Form, New Method, then create 'chucks_keypress' method...
In the 'chucks_keypress' method, I would fire the click() event in question with something like
THISFORM.activecontrol.click()
In the myform.keypressevent, I would define the circumstances to fire the new method..
IF TYPE("THISFORM.ActiveControl") == "O" AND UPPER(THISFORM.ActiveControl.BaseClass) <> "GRID"
IF INLIST(LAST(), leftarrow, rightarrow... leftclick...)
chucks_keypressevent()
ENDIF
ENDIF
HTH
Ric
>Hello,
>
>OK, I'm still not getting the significance of _activeform.keypress(). Are you saying to open my form in design mode, open the properties box, go into the KeyPress Event and create a [User Procedure] there that contains the code?
>
>Thanks for your continued help. Chuck
>
>>Hello,
>>
>>Okay, try it with cleaner 'coding' lol... I did apologise in a later message...
>>
>>In the _activeform.keypress() Event you would have the code:
>>
>>PRE
>>IF TYPE("THISFORM.ActiveControl") == "O" AND UPPER(THISFORM.ActiveControl.BaseClass) <> "GRID"
>> IF INLIST(LAST(), leftarrow, rightarrow... leftclick...)
>> chucks_keypressevent()
>> ENDIF
>>ENDIF
>>/PRE
>>
>>The "O" means we are on an object, just a habit I got in of insuring everything works...
>>
>>HTH
>>
>>Ric
>>