Keeping a window on top and having it respond to keystrokes.

  • Thread starter Thread starter Mufasa
  • Start date Start date
M

Mufasa

I have a window that I'm forcing to stay on top. The window is full screen
with no border (I am running as a kiosk). I have some keystrokes that the
window is supposed to respond to. I have it make itself topmost about every
30 seconds and force it to be the topmost window. Problem is - the menu
doesn't respond to keystrokes. And it worked up until about two months ago
and apparanetly I did something to it so it won't work.

So what do I need to do to make a window always on top (that's got multiple
controls on it) that will respond to my keystrokes?

TIA - Jeff.
 
Let me give you more information......

The window has a shockwave control on it. And it seems as if the flash
control always has focus. But it doesn't have a keypress event so I can't
trap when people press the keys to get out of the program (that's the main
thing I'm using the keystrokes for - mouse isn't an option. )

I tried putting something in keypress for the window but it is never called.

Any thoughts?

TIA - Jeff.
 
Hi Jeff,
I have a window that I'm forcing to stay on top. The window is full screen
with no border (I am running as a kiosk). I have some keystrokes that the
window is supposed to respond to. I have it make itself topmost about every
30 seconds and force it to be the topmost window. Problem is - the menu
doesn't respond to keystrokes. And it worked up until about two months ago
and apparanetly I did something to it so it won't work.

So what do I need to do to make a window always on top (that's got multiple
controls on it) that will respond to my keystrokes?

would it be possible that you haven't set the KeyPreview property for your
form to <True> ..?

Cheers,
Olaf
 
Thanks. I tried that but I'm still not getting the keystrokes.

It appears to be a problem with the flash control. If I remove the control -
it works fine. Put it back - it doesn't work.

J.
 
Back
Top