On 09/05/2012 07:16 AM, Barry Etheridge wrote:
You can't run the webbrowser control in a thread for the simple reason that it's already asynchronous. Run this sub if you don't believe me.

Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
        For n = 1 To 20000000
            Label1.Text = n.ToString
            If n = 1345 Then
WebBrowser1.Navigate("http://www.vbforums.com/";)
            End If
            Application.DoEvents()
        Next
    End Sub

If the thread is being held up it is not by the webbrowser navigating to or displaying a new website.

Well, I can assure you that even that sub will bring the FFT processing to a halt during the navigation part of the webbrowser component. I did solve the issue by making that form into it's own application and just calling the application with a command line of the navigation site. Problem is solved.

On Tuesday, 4 September 2012 02:19:44 UTC+1, Jeff - N7YG wrote:

    I am having difficulty trying to get a form with a web browser
    control
    to run in some type of separate thread so that it does not block the
    main form and it processing.

    I have a form that has a few controls along with WebBrowser control.
    When this browser control is processing a web site, it blocks the
    main
    thread and all of the processing.

    I have tried various methods to run this in a a thread but have
    not had
    any luck.  Anyone got any suggestions on how to do this?  What ever
    processing that happens in the browser cantrol, can not affect
    anything
    on the calling forms main thread.  I have some serious FFT processing
    that is hapening and it really screws things up.

-- Jeff K. Steinkamp (N7YG)
    Tucson, AZ
    Scud Missile Coordinates
    N32.229 W110.875

--
You received this message because you are subscribed to the Google
Groups "DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML
Web Services,.NET Remoting" group.
To post to this group, send email to dotnetdevelopment@googlegroups.com
To unsubscribe from this group, send email to
dotnetdevelopment+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/dotnetdevelopment?hl=en?hl=en
or visit the group website at http://megasolutions.net


--
Jeff K. Steinkamp (N7YG)
Tucson, AZ
Scud Missile Coordinates
N32.229 W110.875

--
You received this message because you are subscribed to the Google
Groups "DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML
Web Services,.NET Remoting" group.
To post to this group, send email to dotnetdevelopment@googlegroups.com
To unsubscribe from this group, send email to
dotnetdevelopment+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/dotnetdevelopment?hl=en?hl=en
or visit the group website at http://megasolutions.net

Reply via email to