选项卡上的进度条选项卡控件的项目 [英] Progress bar on Tab Item of tab Control
本文介绍了选项卡上的进度条选项卡控件的项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在C#项目中使用Webkit .net开发浏览器..因为webkit浏览器不支持进度更改事件我正在考虑在我的Tab控件上实现就像IE或Firefox浏览器一样,每个选项卡的左侧都有循环进度旋转item
如果有人帮我解决这个问题会很感激
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
推荐答案
你可以使用像下面的代码:
You can use the progress like in below code:
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.
这篇关于选项卡上的进度条选项卡控件的项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文