
Originally Posted by
matrik02
I no idea how to start.I don't know how to start so I would like to see the sample so that I got and idea.
I just use the mouse down click on application exe manually like your done to open the word program

. I would like to do like this While waiting the program is opened, I would like to show the prograss bar to let me know that the program I try to open is still in process.
here this is a light sample so u wont get confused
Code:
'the time interval is 100
'the pb.value is the progress bar value
Private Sub Timer1_Timer()
pb.Value = pb.Value + 1
If (pb.Value = 2) Then
lblWait.Caption = "Please Wait"
ElseIf (pb.Value = 4) Then
lblWait.Caption = ""
ElseIf (pb.Value = 8) Then
lblWait.Caption = "Please Wait"
ElseIf (pb.Value = 12) Then
lblWait.Caption = ""
ElseIf (pb.Value = 16) Then
lblWait.Caption = "Please Wait"
ElseIf (pb.Value = 20) Then
lblWait.Caption = ""
ElseIf (pb.Value = 24) Then
lblWait.Caption = "Please Wait"
ElseIf (pb.Value = 28) Then
lblWait.Caption = ""
ElseIf (pb.Value = 32) Then
lblWait.Caption = "Connecting"
ElseIf (pb.Value = 36) Then
lblWait.Caption = ""
ElseIf (pb.Value = 40) Then
lblWait.Caption = "Connecting"
ElseIf (pb.Value = 44) Then
lblWait.Caption = ""
ElseIf (pb.Value = 48) Then
lblWait.Caption = "Connected"
End If
If pb.Value = 50 Then
Unload Me
frmLogin.Show
End If
End Sub
i hope this might help and wont get u confused