-
I am using the Shock Wave Flash control in my program (1 form). Now I made the flash control fill up the whole screen. And I want to make it so that if anyone moves, or clicks the mouse, it exits (ends) also if anyone presses any thing on the key board (Like a screen savor)
is there I way to do it, if you ahve any suggestions, please post them
thanks in advance
Dimava
-
You can try this:
Set the KeyPreview property of your Form to True.
Put the End statement in these two Form events:
KeyDown
MouseDown
That should work, let me know how you make out.
-
You can put on keyPress and End or MoveUp also and End
-
I tried doing all of that, but since the flash control takes up the whole form, the event does not happen to the form. I just thought of haveing a second form, and making it invincabel, and havin all of that on the second form. I'm not sure if it will work, but can someone please give me the code for a transparent background of a form
-
I strongly believe that you should maximize the form that calls the Flash media. Then the mousemove and all the other events shall be effective.
-
I already had the form maximzied, and the flash contorl take up the whole screen.