Visual basic
2013-08-29, 07:56 PM,
#1
I'm writing a VB program atm but I cant figure out how to make one thing works. (progressbar+timer+message pop up)

If anyone could help me. it will take around 5 minutes.

Pm me your Skype username and ill add you.

Thanks already,
2013-08-29, 08:01 PM,
#2
I am using my laptop atm, so I do not have vb on here so I think the code is something like this, it may be wrong though.

I am presuming you want it to happen when you click a button if so I think it is something like this.


timer1.start
when timer1.time( it will say what the word is for the timer " time " I do not know of the top of my head. ) = 10 then progressbar1.progress = 10.

Then repeat that until you are up to 100, this is probably wrong but I think it is something along those lines, google it:d
2013-08-29, 08:03 PM,
#3
Hey villain ye its a little bit more difficult.

I have 2 timers 1 for the connect button and 1 for the Hack button.

Now I made the connect button work it loads the progressbar and when its finished it gives a message saying connected successful.

Now I cant get the Hack button to reload the progressbar and make it pop up a msgbox saying hack completed but I cant figure out how
2013-08-29, 08:09 PM,
#4
(2013-08-29, 08:03 PM)kalekoppen Wrote: Hey villain ye its a little bit more difficult.

I have 2 timers 1 for the connect button and 1 for the Hack button.

Now I made the connect button work it loads the progressbar and when its finished it gives a message saying connected successful.

Now I cant get the Hack button to reload the progressbar and make it pop up a msgbox saying hack completed but I cant figure out how

Just do the same thing, so you are wanting to reset the progress bar when you click hack button then you want it to restart then a message comes up?

Just copy the same code from connect button onto hack button, change button names etc, from like button1 to button2 etc, then at the top of that code put timer1.progress 0 or something.
2013-08-29, 08:13 PM,
#5
I seriously cant figure it out man xD if anyone could offer visual help pls pm me ur Skype name
2013-08-29, 08:14 PM,
#6
(2013-08-29, 08:13 PM)kalekoppen Wrote: I seriously cant figure it out man xD if anyone could offer visual help pls pm me ur Skype name

How can you not figure it out?

You just need to copy the code from the button you have done to the one you have not?
2013-08-29, 08:17 PM,
(This post was last modified: 2013-08-29, 08:19 PM by kalekoppen.)
#7
Oke villain its working now but the message pop ups over 50 times. how can I fix that ?

This is the code for the timer.

ProgressBar1.Increment(1)
If ProgressBar1.Value <> ProgressBar1.Maximum Then
ProgressBar1.Value += 1
Else
Timer1.Enabled = False
MsgBox("Connected", 48, "succesful")
End If
2013-08-29, 08:23 PM,
#8
(2013-08-29, 08:17 PM)kalekoppen Wrote: Oke villain its working now but the message pop ups over 50 times. how can I fix that ?

This is the code for the timer.

ProgressBar1.Increment(1)
If ProgressBar1.Value <> ProgressBar1.Maximum Then
ProgressBar1.Value += 1
Else
Timer1.Enabled = False
MsgBox("Connected", 48, "succesful")
End If

At the end try msgbox.end or msgbox.close or just end or stop etc.
2013-08-29, 08:40 PM,
#9
WOOHOO I made it work ! thanks villain for the help
2013-08-29, 08:58 PM,
#10
(2013-08-29, 08:40 PM)kalekoppen Wrote: WOOHOO I made it work ! thanks villain for the help


No probs, hope your program does it job perfectly!


Possibly Related Threads...
Thread Author Replies Views Last Post
  Visual studio/basic miamor 6 242 2017-03-07, 10:37 PM
Last Post: miamor
  Visual Basic Question Daenerys 2 286 2017-02-24, 10:52 PM
Last Post: imonambot
  CPAGrip MediaFire Locker Help! Basic Coding Skills f1rew1re 3 381 2017-02-05, 11:27 PM
Last Post: f1rew1re
  Visual Studio - Windows SmartScreen?! Adept 5 940 2016-03-11, 04:34 PM
Last Post: Adept
  Visual Studio - CPAgrip offers embedded in application Adept 5 740 2016-03-06, 10:31 PM
Last Post: Adept




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

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