Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27437

vb.net How to keep gui functional while webbrowser is navigating

$
0
0
Hi, i'm italian , so first of all sorry for my bad english. I want to keep gui functional while webbrowser is navigating.
When I run my program, the gui freeze until webbrowser is completed, so the site il loaded.
I have tried to use backgroundworker with this code
Code:

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        BackgroundWorker1.RunWorkerAsync()
    End Sub 
Private Sub BackgroundWorker1_DoWork(ByVal sender As System.Object, ByVal e As System.ComponentModel.DoWorkEventArgs) Handles BackgroundWorker1.DoWork
        WebBrowser1.Navigate("http://www.whooming.com/?page=login_page")
        WebBrowser1.ScriptErrorsSuppressed = True
    End Sub

But it doesn't work.. Any solution?? Thanksss!!

Viewing all articles
Browse latest Browse all 27437

Trending Articles