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: 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)
  • Re: CreateProcess not work on Vista
    ... Whenever you call an API function, and it fails, you MUST call ... and after the CreateProcess you must ReleaseBuffer ... ZeroMemory (&si, sizeof (si)); ... Without knowing the reason for the error, you have no idea why it failed. ...
    (microsoft.public.vc.mfc)