Application.Run, then Exit, then Run

  • Thread starter Thread starter foldface
  • Start date Start date
F

foldface

Hi
Is it possible to create a form, call

Application.Run()

to get the form working and processing messages, then

Application.Exit()

to stop it processing any messages and make it just hang around, then do
some stuff, then

Application.Run()

again and carry on where I started?

I know this is an odd request, its for unusual testing code.
Incidently this is a leading question, I can't get this to work :-) The form
is disposed after the Exit call, but I haven't attached the form to the
Application.Run, does this happen automatically?

Ta
F
 
Back
Top