进度条怎么做--大虾指导

oralec 2002-06-05 09:49:33
我想做一个进度条,该怎么做
...全文
49 9 打赏 收藏 转发到动态 举报
写回复
用AI写文章
9 条回复
切换为时间正序
请发表友善的回复…
发表回复
网络咖啡 2002-06-05
  • 打赏
  • 举报
回复
这个也需要问吗????
footballboy 2002-06-05
  • 打赏
  • 举报
回复
你问的是怎样使用进度条控件还是自己设计一个进度条控件啊
cqfanli 2002-06-05
  • 打赏
  • 举报
回复
用RDC+SQL語句來做吧﹐執行速度很快的呀
insert
update
delete
select
呵呵~~
cqfanli 2002-06-05
  • 打赏
  • 举报
回复
設定max﹐min的值﹐程序中改變value的值(是數字呀﹐介于max和min之間)﹐搞定﹐呵呵
ql_mf 2002-06-05
  • 打赏
  • 举报
回复
制定进度条的Max值,然后在循环中修改Value属性
寒星 2002-06-05
  • 打赏
  • 举报
回复
Option Explicit
Private strURL As String
Private intProgressBarMax As Integer

Private Sub Command1_Click()
' Show the ProgressBar and enable the timer.
ProgressBar1.Visible = True
Timer1.Enabled = True
End Sub

Private Sub Form_Load()
Command1.Caption = "Show Progress"
intProgressBarMax = 50

' Configure the ProgressBar control.
ConfigureBar ProgressBar1

' Configure Timer control.
With Timer1
.Enabled = False
.Interval = 100
End With


End Sub

Private Sub Timer1_Timer()
' Test the variable named counter. If it's less
' then the module variable intProgressBarMax then
' show the ProgressBar control.
Static counter As Integer
If counter = intProgressBarMax Then
Timer1.Enabled = False
counter = 0
' hide progressbar
ProgressBar1.Visible = False
Exit Sub
Else
counter = counter + 1
ProgressBar1.Value = counter
End If
End Sub
Private Sub ConfigureBar(prgBar As ProgressBar)
With ProgressBar1
.Max = intProgressBarMax
.Visible = False
End With
End Sub

footballboy 2002-06-05
  • 打赏
  • 举报
回复
首先确定现有的进度条有什么不足的地方
smjy 2002-06-05
  • 打赏
  • 举报
回复
设定进度条的MAX值,
然后在运行过程如一个循环中指定进度条的VALUE就行。
oralec 2002-06-05
  • 打赏
  • 举报
回复
设计

7,763

社区成员

发帖
与我相关
我的任务
社区描述
VB 基础类
社区管理员
  • VB基础类社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧