Compact framework application loop

  • Thread starter Thread starter Jacob
  • Start date Start date
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.
 
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.
 
Back
Top