The form does have a keypress() event. If you are using a workspace to host(embed) other forms into one host form, you'll have to declare a variable that holds the current object in the workspace, and address the correct object. For example.
PUBLIC $CurrentObject as Object on the guest forms open() event... you set this variable. PUBLIC SUB Form_Open() Fmain.$CurrentObject = me ' FMAIN is your host form (name it whatever you want) END That will give you a common ground to use the host form's _keypress() event Of course, there must be better ways to do this, but I have used this method in the past and it works for me ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user