Form Activation?

  • Thread starter Thread starter Adam Right
  • Start date Start date
A

Adam Right

Hi,

I have a pocket pc project and am developing it with C#.
I want to activate a form which has already created in pocket pc.

I have looked that there is no activeform property for mobile forms. So i
cannot activate existing form, i cannot make its visible property true. In
brief, the solution is possibly creating a new instance of this form. But
this is not efficient for navigation. Any suggestion for better navigation?

How can i activate existing form in mobile application?

Thanks...
 
Use the Show method. Declare an instance of the form as a static property
or at the module level if you know that it's only going to be called from
one form. Then just use Show. You are right, on the PPC, instantiating a
new instance of a form each time you want to show it can have ghastly
performance side-effects. You can use Visible for instance, coupled with
Maximize/Minimize events and do what you need.
 
Back
Top