Try somthing like: (this example causes the hotsync button to be ignored when this c)
if ((event.eType == keyDownEvent) && TxtCharIsHardKey(event.data.keyDown.modifiers, event.data.keyDown.chr) && ((event.data.keyDown.chr == vchrHardCradle) || (event.data.keyDown.chr == vchrHardCradle2))) { // Do something } else if (! SysHandleEvent(&event)) if (! MenuHandleEvent(0, &event, &error)) if (! AppHandleEvent(&event)) FrmDispatchEvent(&event); Chris Marcelio DeathAvenger <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > Hi all, > Instead of letting SysHandleEvent to handle the hard and soft key > strokes and the power button, I'd like to handle them myself. How could I > tell from the event that they are those commands? Any help would be > appreciated. > Marcel > > > > -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/