| View previous topic :: View next topic |
| Author |
Message |
Pepsiguy I post too much
Reputation: 0
Joined: 16 Aug 2007 Posts: 2016
|
Posted: Mon Jan 07, 2008 4:32 pm Post subject: Need VB6's Msgbox help |
|
|
how do i make 10000 msgboxes come up at 1 time? _________________
|
|
| Back to top |
|
 |
Trow Grandmaster Cheater
Reputation: 2
Joined: 17 Aug 2006 Posts: 957
|
Posted: Mon Jan 07, 2008 4:37 pm Post subject: |
|
|
do in multiple threads _________________
Get kidnapped often. |
|
| Back to top |
|
 |
Pepsiguy I post too much
Reputation: 0
Joined: 16 Aug 2007 Posts: 2016
|
Posted: Mon Jan 07, 2008 4:40 pm Post subject: |
|
|
i want the code post ze code and wtf are threads _________________
|
|
| Back to top |
|
 |
Pseudo Xero I post too much
Reputation: 0
Joined: 16 Feb 2007 Posts: 2607
|
Posted: Mon Jan 07, 2008 4:40 pm Post subject: |
|
|
| pepsiguy_2 wrote: | | i want the code post ze code and wtf are threads |
Are you serious? |
|
| Back to top |
|
 |
hcavolsdsadgadsg I'm a spammer
Reputation: 26
Joined: 11 Jun 2007 Posts: 5801
|
Posted: Mon Jan 07, 2008 4:52 pm Post subject: |
|
|
| a loop would be a great place to start. |
|
| Back to top |
|
 |
kjmarket Grandmaster Cheater
Reputation: 0
Joined: 11 Oct 2006 Posts: 600
|
Posted: Mon Jan 07, 2008 5:28 pm Post subject: |
|
|
Reading up on the basics would be an even better start. _________________
I can hear the voices of opcodes. "Come and NOP me!" Come and NOP me!" |
|
| Back to top |
|
 |
dnsi0 I post too much
Reputation: 0
Joined: 04 Jan 2007 Posts: 2674
|
Posted: Mon Jan 07, 2008 5:56 pm Post subject: |
|
|
| Loops doesn't work. Becuase its all in a queue so you have to click ok to the first one for the 2nd one to pop up. |
|
| Back to top |
|
 |
Trow Grandmaster Cheater
Reputation: 2
Joined: 17 Aug 2006 Posts: 957
|
Posted: Tue Jan 08, 2008 2:52 am Post subject: |
|
|
| Xenophobe wrote: | | pepsiguy_2 wrote: | | i want the code post ze code and wtf are threads |
Are you serious? |
QFFT
I'll give you the way to do it but I won't give you codes... the noob way of doing it is an app SHELLEXECUTEing itself and showing a message box.
Enough hints I suppose.. you can also do it the ActiveX EXE way, VB.NET way, or any ThunderVB way. But I don't think you'll get close to those methods with the kind of "i want the code" mindset. _________________
Get kidnapped often. |
|
| Back to top |
|
 |
SkeleTron Grandmaster Cheater Supreme
Reputation: 1
Joined: 28 Jun 2007 Posts: 1022
|
Posted: Tue Jan 08, 2008 9:52 am Post subject: |
|
|
You can make form which looks like msgbox...suggestion _________________
Reedemer. |
|
| Back to top |
|
 |
Pedram123 Grandmaster Cheater
Reputation: 0
Joined: 16 Nov 2007 Posts: 639 Location: Denmark
|
Posted: Tue Jan 08, 2008 2:43 pm Post subject: Re: Need VB6's Msgbox help |
|
|
THE ESIEST WAY!
1) Click on the timer
2) Drag it to your form
3) Double Click the timer
4) Enter this code: msgbox "what you want to say" , vbcritical , "What you want the caption to be"
5) Click on the timer
6) Change the Interval to 100
7) Woila! Finished!!! _________________
|
|
| Back to top |
|
 |
Labyrnth Moderator
Reputation: 10
Joined: 28 Nov 2006 Posts: 6301
|
Posted: Tue Jan 08, 2008 2:57 pm Post subject: |
|
|
| Why in the hell would you want to do that unless your trying to send it to someone for spite. |
|
| Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8585 Location: 127.0.0.1
|
Posted: Wed Jan 09, 2008 2:39 am Post subject: Re: Need VB6's Msgbox help |
|
|
| Pedram123 wrote: | THE ESIEST WAY!
1) Click on the timer
2) Drag it to your form
3) Double Click the timer
4) Enter this code: msgbox "what you want to say" , vbcritical , "What you want the caption to be"
5) Click on the timer
6) Change the Interval to 100
7) Woila! Finished!!! |
You should really test your code before you try to give help. Just like the other suggestions this wont do anything until you click to close the msgbox. Another will not popup until you close the one currently being shown. _________________
- Retired. |
|
| Back to top |
|
 |
hcavolsdsadgadsg I'm a spammer
Reputation: 26
Joined: 11 Jun 2007 Posts: 5801
|
Posted: Wed Jan 09, 2008 4:40 am Post subject: |
|
|
| Actually, it looks like you can do it with a timer. I wasn't using VB, but unless VB is magically different in that regard, it works. |
|
| Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8585 Location: 127.0.0.1
|
Posted: Wed Jan 09, 2008 6:15 am Post subject: |
|
|
| slovach wrote: | | Actually, it looks like you can do it with a timer. I wasn't using VB, but unless VB is magically different in that regard, it works. |
Kind of hard to say it works when you aren't using the language that is in question lol. Like I said above, VB doesn't handle things the same way other languages do. When a message box pops up, it is automatically modal to the entire program. That being said, the main thread of the program is "paused" until that message box is closed.
Easy way to test:
| Code: | Option Explicit
Private Sub Command1_Click()
MsgBox "Hello"
End Sub
Private Sub Form_Load()
Text1.Text = 1
Timer1.Interval = 1000
End Sub
Private Sub Timer1_Timer()
Text1.Text = Val(Text1.Text) + 1
End Sub |
Add 1 timer, 1 textbox, 1 button to your project. Paste the above code and run. Let the text tick some to show the timer is working then click the button to have the message box appear. The text will not tick anymore until you close the message box. _________________
- Retired. |
|
| Back to top |
|
 |
JakSplitter Expert Cheater
Reputation: 0
Joined: 31 Aug 2006 Posts: 196
|
Posted: Wed Jan 09, 2008 7:00 am Post subject: |
|
|
I dunno dude, i have coded in vb6 again until yesterday, anyways try this.
Add a button, then make the button say Timer1.Enabled = True, then in the Timer1 add:
for i = 1 to 1000
msgbox ("LOL!")
next i
timer1.enabled = false |
|
| Back to top |
|
 |
|