Getting keys to work in WebBrowser
Posted on 2003-03-01
I'm making a little program for playing flash games without a internet connection, it's ment for my coworkers when they want to play a little game when they have nothing to do, without having to go on internet.
The games are flashgames (like pacman andso), which i download from internet.
I use the WebBrowser component to navigate to the <filename>.swf file, and that works okay.
But then, after you click <PLAY>, the game starts, pacman (in this example) starts eating his way, but you can't send him in any direction...bummer...
I tried to made the WebBrowser component the active one the form, but no luck.
Even when I first click in the browser component, no luck.
In IE6 it's works fine with just the <filename>.swf file, but as soon as mine program starts, it doesn't work in my program.
It's very simpel for now, just a form, a menu bar with a start option and a webbrowser component. But before i go making the program be able to play more games, update itself etc., i first want to get this problem fixed.
For the moment i'm talking about the cursor keys, but ofcourse al keys have to go directly to the webbrowser component.
What am i doing wrong ?