VB.net: A pop up window after progress bar completes?
2014-06-05, 04:04 AM,
#1
Hi guys,
As the title, How can i make a pop up appears when the progress bar completes? A pop up says "Done" or anything like that?

Thanks.
Reply
2014-06-05, 04:08 AM,
#2
You can do it with this code, if you want you can post code of your progress bar here and I will put this in.

Code:
MsgBox("Done!", MsgBoxStyle.OkOnly Or MsgBoxStyle.Information, "My App Name")
Latest Thanks - View all

Caspoor(2014-06-05 05:41 AM) 
Reply
2014-06-05, 04:09 AM,
#3
Try using the MessageBox.Show or MsgBox functions.

"In Visual Basic, using MsgBox() to create a message box to display to users is still supported, though the new syntax, MessageBox.Show(), as seen above, is preferred."

http://msdn.microsoft.com/en-us/library/....110).aspx
Latest Thanks - View all

Caspoor(2014-06-05 04:29 AM) 
Reply
2014-06-05, 05:16 AM,
#4
Code:
Progressbar1.increment (1)
if progressbar1.value = progressbar1.maximum then
Timer1.Stop ()
Msgbox"type message here"
Latest Thanks - View all

Caspoor(2014-06-05 05:41 AM) 
Reply
2014-06-05, 05:21 AM, (This post was last modified: 2014-06-05, 05:21 AM by CPAManager.)
#5
The code Cody44 posted above will work. It's important to put Timer1.stop() at the first thing, after the value is 100 or maximum. If you don't put Timer1.stop() then it will spam message boxes on your screen.

Code if you are using default progressbar.

Code:
Progressbar1.Increment(+1)
if progressbar1.value = 100 then
timer1.stop()
msgbox("done")
end if

If you are using a theme progressbar, then use this..

Code:
ThemeProgressbar1.value +=1
If ThemeProgressbar1.value = 100 then
timer1.stop()
msgbox("done")
end if
Latest Thanks - View all

Caspoor(2014-06-05 05:41 AM) 
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  HELP A NEWBIE. WINDOW AZURE VPS topgallant01 1 133 2017-11-27, 09:32 PM
Last Post: CPATracker
  Pop under auto install Junegreen 6 315 2017-08-11, 10:08 PM
Last Post: KilluminatiX
  Does Popads.net traffic convert with CPAGrip ? Tarek77 23 1,321 2017-06-27, 06:02 PM
Last Post: 8pipes
  Is there any CPA site which pays Weekly or NET-15 ? kapo46as 9 573 2017-05-09, 03:08 AM
Last Post: 8pipes
  Exit Pop/Direct Traffic Nickisrawer 3 339 2017-05-04, 12:17 AM
Last Post: OGAds





About Us | Contact Us | CPA Elites | Advertise | Stats | Staff Team

© 2013-2017 CPA Elites Ltd
Enhanced by MyBB and WallBB
Return to top