Compact framework application loop

J

Jacob

Hello,

My question if fairly simple:
I start an new application loop by eg. Application.Run(new SomeFrm);
and then after some event I want to launch another form in
exactly the same way - I would like to move application loop to
this other form and close the old one.

I don't know if this could be accomplished within the same thread ?
And of course I wan't to close this old one without closing the application.
 
J

Jacob

Peter Duniho said:
The Compact Framework might be different. But, you can call
Application.Run() without a form, so that no specific form causes the loop
to exit. You will, of course, have to then use Application.ExitThread()
explicitly when it's time to actually exit, but that's simple enough to
hook up.

Pete
Thank you Pete for your response !
In fact CF is different , Application.Run needs a parameter. (and there is
no ExithThread method as well)
That's why I'am asking.
 

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