Setting focus on a TWebBrowser



Hello!

I have an application where I use a TWebBrowser component. I want to programattically move focus to it but for some reason that fails. I can see that the focus leaves the old control. Checking the forms ..ActiveControl tells me that the WebBrowser has the focus, but it does not take input from the scroll-wheel until I have clicked in it.

After clicking in the browser control's space the forms .ActiveControl still says it's the webbrowser that has focus.

I just don't get it. I have done this many times before but seem to fail this time.

/Leif

.



Relevant Pages

  • Re: Coding inside the debugger
    ... but why isn't the test written so that the reason it fails is ... If something fails in tests like these, ... public void testCreateWithDefaultthrows Exception { ... Ghostworld world = worldWithClass; ...
    (comp.object)
  • Re: I need help please!
    ... It is documented on some systems I've use a lot as a standard way of exiting at any point. ... Any software written for general consumption should deal with unexpected keystrokes for the simple reason that, in the real world, they are very common. ... So you "REASONABLE man's method" fails on a very common system, ... I would say that a "solution" that does not work on a very common platform is NOT a reasonable solution. ...
    (comp.lang.c)
  • Re: more Ada.Directories questions
    ... it fails is not certain to work, so having a single routine to do the entire ... reasonably clear that Name_Error is tested first - for the whole string. ... and it is described as a test on the whole string. ... don't see any great reason to insist on it. ...
    (comp.lang.ada)
  • Re: what is wrong?
    ... The only reason you "should" get no output is if the int 21h/47h fails. ... After the "xlatb", ...
    (alt.lang.asm)
  • Re: split by word using | as delimiter
    ... Others have answered your primary question. ... comments; hope you don't mind. ... If 'open' fails, the reason is stored in the ...
    (comp.lang.perl.misc)