[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
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.