Results 1 to 3 of 3

Thread: Restart App

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Mar 2005
    Posts
    124

    Restart App

    How can I restart my program without having to go through Sub Main()? The reason for this is that I have many variables which affect many parts of the program and instead of resetting each one individually. I thought that I can restart my program, but skip going through Sub Main() and go to a different form. is this possible? Thanks
    I never know what to put in this section...



    So sue me... ... ... I'm just kidding...


    www.fat-pie.com Flash Movies... You gotta see 'em to believe 'em!

  2. #2
    Hyperactive Member Lil Ms Squirrel's Avatar
    Join Date
    Nov 2004
    Location
    planet squirrel
    Posts
    494

    Re: Restart App

    Surely the variables will be destroyed when you close the app so you'll want to reinitialise them in the sub main anyway?

    You could create some external flag such as in the registry or in a text file on the local machine, then the Sub Main could check the status of this variable and optionally run or exit based on what had been stored previously.

    Explain a little more about these variables...
    Be who you are and say what you feel, because those who mind don't matter and those who matter don't mind.
    Dr. Seuss

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Mar 2005
    Posts
    124

    Re: Restart App

    Surely the variables will be destroyed when you close the app so you'll want to reinitialise them in the sub main anyway?
    The variables are Publics declared in the same module which has Sub Main(). All the publics are outside of Sub Main() though. I can reset each one of these variables to 0 myself, one by one (they're all integers), but if there is an easier way, then I shall use that.
    I never know what to put in this section...



    So sue me... ... ... I'm just kidding...


    www.fat-pie.com Flash Movies... You gotta see 'em to believe 'em!

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