Click here to Skip to main content
15,910,234 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i am developing a Browser using Webkit .net in C# project .. as webkit browser doesnt support progress changed event i was thinking of implementing on my Tab control Just like IE or Firefox Browser where Circular progress spins on left side of each tab item

would appreciate if someone helps me with this issue
Posted

1 solution

You can use the progress like in below code:
VB
Private Sub WebKitBrowser1_Navigating(sender As System.Object, e As System.Windows.Forms.WebBrowserNavigatingEventArgs) Handles WebKitBrowser1.Navigating
        ProgressBar1.Visible = True
        With ProgressBar1
            .Minimum = 0
            .Maximum = 50
            .Step = 3
        End With
        For index As Integer = 0 To 50 Step 5
            ProgressBar1.Value = index
            System.Threading.Thread.Sleep(38)
        Next
        Label1.Text = "Loading..."
    End Sub
 Private Sub WebKitBrowser1_DocumentCompleted(sender As System.Object, e As System.Windows.Forms.WebBrowserDocumentCompletedEventArgs) Handles WebKitBrowser1.DocumentCompleted
        ProgressBar1.Visible = False
        Label1.Text = "Done"
    End Sub

Hope this will help you and dont forget to mark it as answer if that help you.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900