Application.Run, then Exit, then Run

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top