1
使用open-webkit-sharp時可以實現進度條嗎?我試圖用正常的WebBrowser控件來完成它,但這是不可能的。沒有e.CurrentProgress和e.MaximumProgress。有沒有另外一種方法呢?使用open-webkit-sharp實現進度條
使用open-webkit-sharp時可以實現進度條嗎?我試圖用正常的WebBrowser控件來完成它,但這是不可能的。沒有e.CurrentProgress和e.MaximumProgress。有沒有另外一種方法呢?使用open-webkit-sharp實現進度條
看看這有助於
Private Sub WebKitBrowser1_Navigating(ByVal sender As System.Object, ByVal 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
Label2.Text = "loading"
End Sub
Private Sub WebKitBrowser1_DocumentCompleted(ByVal sender As System.Object, ByVal e As System.Windows.Forms.WebBrowserDocumentCompletedEventArgs) Handles WebKitBrowser1.DocumentCompleted
ProgressBar1.Visible = False
Label2.Text = "Done"
End Sub
來源:codeproject