Unhappy[Help] Checking if ProgressBar is completed.

Posts 1–6 of 6 · Page 1 of 1
[Help] Checking if ProgressBar is completed.
i want to made a msgbox appear after my progressbar its done i read almost all other postings like this but they didin't work so can sombody help me i am mading garena phisher for my brother if somebody can give me the code

down is a download link of my program please help
Put this in a timer:

[highlight=vb.net]If ProgressBar1.Value = 100 Then
MsgBox("Done!")
End If[/highlight]
Quote Originally Posted by Nathan View Post
Put this in a timer:

[highlight=vb.net]If ProgressBar1.Value = 100 Then
MsgBox("Done!")
End If[/highlight]
No, put it wherever you're incrementing the progress bar value. If there's a specific event you can handle it is WAY more efficient and accurate than using anything that's time based.

[highlight=vb.net]
If ProgressBar1.Value = ProgressBar1.Maximum
MsgBox("Complete")
Else
'do your incrementing
End If
[/highlight]
Removed attachment.

EDIT: Don't ask for keylogging/phishing software here, we do not support it.
Like @Jason said, .complete is the most accurate way of doing it , Reason: you can set progress bar's maximum to 50, example would be if your using the progress bar to visually display the extraction of a 50mb file or similar.

if your timer increments at plus a random value, or fall short because the value won't increment the progress bar above (let's say) 99, then you may end up with 101 or greater, meaning your code that is set to =100 will never trigger, and fail.
Quote Originally Posted by NextGen1 View Post
Like @Jason said, .complete is the most accurate way of doing it , Reason: you can set progress bar's maximum to 50, example would be if your using the progress bar to visually display the extraction of a 50mb file or similar.

if your timer increments at plus a random value, or fall short because the value won't increment the progress bar above (let's say) 99, then you may end up with 101 or greater, meaning your code that is set to =100 will never trigger, and fail.
Well you can't go over .Maximum, so there's no real need to check the ">="

Unless you're referring to whoever said .Value = 100
Thank You very much finally i get the correct code thanks again

hey i set up to 100 it messages me so many msgboxes so i set up to 99 and lola it works thanks again for all of you
Posts 1–6 of 6 · Page 1 of 1
This thread is closed for replies.

Tags for this Thread

None

Need help?