How to get something like that?
2014-01-08, 03:25 AM, (This post was last modified: 2014-01-08, 03:27 AM by hopsa.)
#1
What's the vb code for a textbox when I click on a button "activate" it says:
1. pdf hack activated
(after 5sec it says step 2)
2. word hack activated

and so on
Reply
2014-01-08, 03:28 AM,
#2
It's so simple, use a timer!
Reply
2014-01-08, 03:31 AM, (This post was last modified: 2014-01-08, 03:48 AM by TheVBScripter.)
#3
You need to make 2 buttons:
Let's label them:
PDFHack and WordHack so your visitors know where to click.

Next, double click at the PDFHack button (button1) and type:
Code:
MessageBox.Show("PDFHack Activated")

Now you got the PFDHack button ready.
Double click at the WordHack button (button2) and type:
MessageBox.Show("WordHack Activated")

That's all! Smile easy isn't it?

Edit:_________
Just saw you edited the thread, so here is the solution:

Add: 1 progressbar, 1 timer
Set timer's interval (at the right side bar) from 100 too 1000 (1 second)

Double click at the button and type:
Code:
timer1.start()

Double click at the timer and type:
Code:
progressbar1.increment(+50) <---- because you wanted 2 seconds before it's done
if progressbar1.value = 100 then
messagebox.show("PDFHack Completed!")
end if

Now click at the green |> and run the program.
Click at the button (PDFHack) and you'll see that the progressbar will go half way, pause a moment and go full.
When it's full you'll see your message.

Voila! Done!
I hope this helped Smile
Goodluck mate.
Reply
2014-01-08, 03:42 AM,
#4
no no I make only 1 button.

after i clicked on the butto it says:
1. pdf hack activated
5 second after it showed 1. pdf hack activated it show:
2. word hack activated
Reply
2014-01-08, 03:55 AM,
#5
(2014-01-08, 03:42 AM)hopsa Wrote: no no I make only 1 button.

after i clicked on the butto it says:
1. pdf hack activated
5 second after it showed 1. pdf hack activated it show:
2. word hack activated

So you want 1 button, but after 5 seconds a message will pop-up with: "pdf hack activated" and then another message with word?
or what do you want? because it doesn't really make sense to me.
Reply
2014-01-08, 04:16 AM, (This post was last modified: 2014-01-08, 04:17 AM by WebBrain.)
#6
If ProgressBar1.Value = (desired time) Then Label2.Text = "Word hack activated"
or MsgBox ("Word hack activated")
Reply






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

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