vb登陆和进度条代码
发布网友
发布时间:2024-05-29 10:18
我来回答
共2个回答
热心网友
时间:2024-06-02 08:17
Private Sub Command1_Click()
If InStr("fff ggg ddd sss hhh jjj rrr aaa vvv bbb mmm", Text1.Text) <> 0 And Text2.Text = "83103023" Then
For i = 1 To 4
For j = 1 To 100000
Me.ProgressBar1.Value = j
Next
Next
Unload Me
Form2.Show
Else
MsgBox "输入错误"
End If
End Sub
热心网友
时间:2024-06-02 08:21
Dim flag As Integer
Private Sub Command1_Click()
If Text2 = "8013023" Then
Select Case Text1
Case "dd", "ff", "gg", "cc", "bb", "ll", "qq"
Timer1.Enabled = 1
Case Else
MsgBox "错误“"
End Select
Else
MsgBox "错误"
End If
End Sub
Private Sub Timer1_Timer()
If flag < 4 Then
ProgressBar1.Value = ProgressBar1.Value + 5
If ProgressBar1.Value = 100 Then ProgressBar1.Value = 0: flag = flag + 1
Else
form2.Show
Unload Me
End If
End Sub
VB6“正在登录”进度条如何做的?
提供两种思路:第一种是模仿X-SCAN的进度条的,不过稍有逊色:'添加一个Timer,Interval设为1 '一个PictureBox,名称是P1 ——TZW Dim d As Single Private Sub Form_Load()d = P1.Width / 255 P1.AutoRedraw=True End Sub Private Sub Timer1_Timer()Static c As Long DrawPic c, d If...
VB如何实现进度条
VB实现进度条的方法只需要5个步骤就可以。1.首先,编写一个程序框架,如下所示。2.然后您可以在这里输入各种语句,如下所示。3.然后找到两个语句块的中间部分,如下图所示。4.输入语句[Exitsub],如下所示。5.最后,您可以运行测试并解决实现进度条的问题,如下所示。注意事项:VB背后的思想是...
关于VB.NET进度条的实例
首先要在窗体中载入以下控件:progressbar(进度条),label(用来实时显示文本提示),两个timer(分别控制进度条进度的增减),然后用以下代码就能实现:Public Class Form1 Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Timer1.Enabled = True Timer1....
VB 进度条控件控制
添加控件textbox一个,progressbar一个,按钮2个 ,timer一个,复制以下代码即可:Option Explicit Dim n As Integer Private Sub Command1_Click()Timer1.Enabled = True Timer1.Interval = 1000 End Sub Private Sub Command2_Click()If Val(Text1) <= 0 Then Exit Sub Text1 = Val(Text1) - ...
关于VB.NET进度条的实例
首先要在窗体中载入以下控件:progressbar(进度条),label(用来实时显示文本提示),两个timer(分别控制进度条进度的增减),然后用以下代码就能实现:Public Class Form1 Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Timer1.Enabled = True T...
VB进度条问题
窗体上放一进度条,一个Timer控件,一个按钮 代码如下 Option Explicit Private Sub Command1_Click()ProgressBar1.Value = 0 ProgressBar1.Max = 100 ProgressBar1.Min = 0 Timer1.Interval = 1000 Timer1.Enabled = True End Sub Private Sub Timer1_Timer()ProgressBar1.Value = ProgressBar1....
vb中用设计一个进度条,一按command,进度条开始工作
1.首先添加microsoft window common Cortrols 6.0部件;2.在控件工具箱中点ProgressBar,在窗体中放置一个滚动条,命名为字pb1;3.在窗体中放置一个命令按钮;4.在窗体上在放置一个计时器控件,命名为T1;代码如下:Dim i As Integer Private Sub Command1_Click()T1.Interval = 1000 i = 10 End...
vb6.0 如何做任务栏进度条?望大神指教,谢谢。
.szTip = "任务栏进度条示例"End With '加任务栏图标 Shell_NotifyIcon NIM_ADD, NotifyIconData End Sub Private Sub Form_Unload(Cancel As Integer)'除任务栏图标 Shell_NotifyIcon NIM_DELETE, NotifyIconData End Sub Private Sub Timer1_Timer()Dim progress As Integer progress = progress + ...
在VB中如何加载进度条?
Private Sub Form_Load()Timer1.Interval = 1000 End Sub Private Sub Timer1_Timer()If ProgressBar1.Value >= 100 Then ProgressBar1.Value = 0 Else ProgressBar1.Value = ProgressBar1.Value + 10 End If End Sub
VB中显示程序读取进度的进度条如何设计?
private sub form_load() image1.width=1000 label1=int(1000/image1.width) & "%" ... image1.width=1500 label1=int(1500/image1.width) & "%" ... image1.width=2000 label1=int(2000/image1.width) & "%" ......