|
-
Apr 24th, 2010, 10:07 PM
#1
Thread Starter
Lively Member
[Help] Quit Upcoming Scripts
alright hey guys i need help, let say u have a feature that gives u alot of message boxes and its unavoidable is there a thing where u can say End Upcoming Scripts
ok please translate fake code to vb 2008 thz
so only one msg pops up like hmm
private sub timer1.enabled blah
Code:
If MsgBox("Quit Upcoing Msgs", vbYesNo, "Spam!") = vbYes Then
timer1.stop
quit scripts
end if
end sub
private sub form load
timer1.start
msgbox("")
msgbox("")
msgbox("")
msgbox("")
msgbox("")
msgbox("")
msgbox("")
msgbox("")
end sub
Last edited by LoGiCAnti; Apr 24th, 2010 at 10:08 PM.
Reason: please trranslate
-
Apr 24th, 2010, 10:14 PM
#2
Re: [Help] Quit Upcoming Scripts
First up, there's no script in VB.NET. VB.NET code is compiled, while script is code interpreted and executed directly from the original source text.
As for the question, there's nothing that will do that automatically. You could do something like set a flag, i.e. a Boolean variable, and then test that before displaying the other messages.
That said, if you use a WinForms Timer then the prompt won't be displayed until after the Load event handler completes any, unless you put call to Application.DoEvents in between.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|