Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Restarting an app

Status
Not open for further replies.

Perilous1

IS-IT--Management
Mar 10, 2005
171
US
I just have a one form app that when it completes it's routine I'd like it to simply rerun itself beginning with Form_Load. I'm sure there is a simple command I can utilize to do this, but I don't know it yet.

Any help would be appreciated.
 
Please disregard.

After posting this it occured to me that I can just call form_load..

Sometimes I wonder about my brain.
 
Yes ... you can just call Form_Load but that doesn't activate the sequence of other processes like Form_Activate and Form_Initialize. That may not be an issue for you but, if it is ...

Create a module with a Sub Main and make that your startup procedure. Then

Code:
Public KeepRunning As Boolean

Public Sub Main()

KeepRunning = True

Do While KeepRunning 
   myForm.Show vbModal
Loop

End Sub

Set "KeepRunning" to False in your form to terminate the process.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top