Re: Setting focus on a TWebBrowser



"Leif Holmgren" <nobody@xxxxxxxxxxx> wrote in message
news:43B469F2.5030308@xxxxxxxxxxxxxx
[...]
> Instead I had to tackle the original problem, which was that due to
> focus beeing in another control (a drop down) a user scrolling the
> mouse would cause massive numbers of
> blablabla.NavigateTo("yabbadehut.htm"),

Scroll wheel support is not quite up to the level of other input devices.
IE has an annoying habit of scrolling the frame under the mouse cursor,
even though the focus is in another frame. Some (control) windows do not
seem to support scrolling at all, suggesting that scrolling is not
handled by Windows itself, that application support is necessary.


> which in turn caused my app
> to hang. I'm still not sure why it hangs but it looks as if NavigateTo
> is called while the previous file is beeing rendered the browser hangs.
>
> So using an event flag, a timer and some other ugly stuff I managed to
> get my app not to hang without moving focus to the browser.

Isn't there some event that fires when rendering is complete, or some
method you could call to find out?

Groetjes,
Maarten Wiltink


.



Relevant Pages

  • IE hangs for 18 seconds after page load
    ... After scrolling down on ... >When I load a page in IE it will appear to have recieved ... but will then hang with the green status ... >screen buttons or menus etc. ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: Karl E. Peterson, I will have to take you up on the offer to..
    ... The goal now is to implement the scrolling inside the control. ... I've downloaded your Hook example project with the Grabber2 ... -A Picture control, in the picture control a Slider on right hand side ...
    (microsoft.public.vb.general.discussion)
  • Re: Display 1 data row as multiple datagrid rows
    ... I have written a custom control before, ... isn't intuitively obvious how to easily extend the Microsoft datagrid to do ... horizontal scrolling is consider bad design. ... wrap too and allow for sorting of any column it's practical to sort on. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Re-draw Control
    ... Drawing should be clipped to the control already when the control receives its paint message. ... So all you have to do is make sure you offset your drawing by the correct amount when repainting the control, and make sure that the control is repainted when any scrolling occurs. ... If you're dealing with actual child controls, then you need to move all of the child controls by the scrolled amount. ...
    (microsoft.public.dotnet.languages.csharp)
  • RE: scrolling programmatically?
    ... Create and customize a scrolling text control ... Open a data access page in Design view (Design view: ...
    (microsoft.public.access.gettingstarted)