Last edited by Nightwalker83; Apr 19th, 2012 at 06:27 AM.
Reason: Adding more!
when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu. https://get.cryptobrowser.site/30/4111672
Private Sub Form_Load()
Timer1.Interval = 1000
Timer1.Enabled = True
With ProgressBar1
.Min = 0
.Max = 10
.Value = 0
.Visible = True
End With
End Sub
Private Sub Timer1_Timer()
If ProgressBar1.Value < 10 Then
ProgressBar1.Value = ProgressBar1.Value + 1
Else
ProgressBar1.Value = 0
ProgressBar1.Visible = False
Unload Me
Timer1.Enabled = False
End If
End Sub
Last edited by seenu_1st; Apr 19th, 2012 at 08:37 AM.
Private Sub tm_Timer()
Picture2.Refresh
Picture1.Refresh
cnt = cnt + 1
Label1.Caption = cnt & " % "
Label2.Caption = "Product " & cnt
If cnt > 100 Then
Picture2.Width = Picture1.Width
cnt = 0
Unload Me
thanks for your help .. brother I actually do not want to show count with product ,, like you have coded .. I want while running progressbar label2 should display product name one by one .. like bread, water, tea etc...
when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu. https://get.cryptobrowser.site/30/4111672
Option Explicit
Dim cnt As Integer
Dim PrdAr
Private Sub Form_Load()
PrdAr = Array("Product1", "Product2", "Product3", "Product4", "Product5", _
"Product6", "Product7", "Product8", "Product9", "Product10")
Picture2.Height = Picture1.Height
Picture2.BackColor = vbBlue
Picture2.Width = 0
tm.Enabled = True
tm.Interval = 1
End Sub
Private Sub tm_Timer()
Picture2.Refresh
Picture1.Refresh
cnt = cnt + 1
Label1.Caption = cnt & " % "
If cnt Mod 10 = 0 Then
Label2.Caption = PrdAr(Int(cnt / 10) - 1)
End If
If cnt > 100 Then
Picture2.Width = Picture1.Width
cnt = 0
Unload Me
Else
Picture2.Width = (cnt / 100) * Picture1.Width
End If
End Sub
Thanks brother for your help .. it worked fine .. to save the space of the forum by making another thread please help me bit more so that I will make thread resolve..
I have another code where instead of message box I want to show form with label1 for programme used count
code
Code:
Private Sub Form_Load()
On Error Resume Next
SaveSetting "hh", "StartupForm", "TimesRun", GetSetting("hh", "StartupForm", "TimesRun", 0) + 1
Timesrun = GetSetting("hh", "StartupForm", "TimesRun")
MsgBox "You have Used this programme " & Timesrun & " times"
End Sub
Thanks brother for your help .. it worked fine .. to save the space of the forum by making another thread please help me bit more so that I will make thread resolve..
That does not save any space at all... what it does is save you a tiny amount of effort, while making things more confusing and annoying for all of the people who try to help (whether they have replied or not).
If your original question has been answered, be polite and mark the thread as Resolved (which allows people who help to focus on the things that haven't been answered yet). You may also want to Rate the posts of the people who helped.
If you have another question that is not a direct extension of the question at the top of the thread, create a new thread for it. There are several reasons why nearly everyone does that and you should too, including many that benefit you (such as more chance of other people reading your question, thus more chance of a good answer).