Results 1 to 2 of 2

Thread: [Help] Quit Upcoming Scripts

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jan 2010
    Posts
    106

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

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    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.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

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
  •  



Click Here to Expand Forum to Full Width