Cherry -
If the code is working but also performing the default behavior then you're
probably not marking the event as "handled" (setting a boolean to true) in
your event handling routine and it's making its way to the SysHandleEvent
routine which will perform the default action of switching apps.
Just a thought. And a run-on sentence...
Stu Slack
[EMAIL PROTECTED]
> -----Original Message-----
> From: cherry zhang [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, March 02, 1999 3:08 PM
> To: [EMAIL PROTECTED]
> Subject: RE: How to override hard button?
>
>
> Hi, all:
>
> I need advice on how to use hard button for my own purpose instead of
> launching the datebook, memopad, etc. I put some code under keydown event
> in the preprossor event, it works but after that it still launches the
> default application. How can I avoid it happen? Is it the right place to
> place the code in the event loop?
>
> Thanks a lot.
>
> Cherry
>
>
>