很简单的界面,上面一个进度条,进度条也很简单,循环方式(类似于ie7安装的那个) 不需要显示进度,一直循环就可以了,20秒后结束关闭整个窗口,请问哪位大哥能帮下啊 !
解决方案 »
- vb打开TXT文件中的符号问题
- WaveObj.dll使用问题麻烦会的大哥帮帮忙吧
- 如何动态删除listview控件的列
- 请教一个SQL查询问题
- OCX的内容如何修改?? 急!!100分
- 关于NEW....在线等..
- 帮我看一下这几行代码什么意思?
- sos!treeview问题
- ====在Excel里面,怎么样控制某列,防止该列发生重复数据=====
- 谁知道Crystal Report Designer Component 8.0的CD-KEY?6M-300019W-D048000-0000000不管用啊!求救!!
- 能不能用SQL语句实现下面的显示格式
- *******使用ADODC连接SQLSERVER 数据库出错!!
一种时钟控件,名为:timer1,interval = 100,
然后贴上以下代码就行,已经调试过了。Option Explicit
Dim i As IntegerPrivate Sub Timer1_Timer()
i = i + 1
If i <= 200 Then
ProgressBar1.Value = i
Else
Unload Me
End If
End Sub
Option Explicit
Dim i As Integer
Dim j As IntegerPrivate Sub Timer1_Timer()
i = i + 1
ProgressBar1.Value = i
If i = 100 Then
i = 0
End If
End SubPrivate Sub Timer2_Timer()
j = j + 1
If j = 20 Then
Timer1.Enabled = False
Unload Me
End If
End Sub
timer2的interval设成20000,就是20秒
----------------------------
Option Explicit
Dim i As IntegerPrivate Sub Timer1_Timer()
i = i + 1
ProgressBar1.Value = i
If i = 100 Then
i = 0
End If
End SubPrivate Sub Timer2_Timer()
'timer2一触发事件,就退出程序,这时正好是20秒
Unload Me
End Sub