Form Activation?

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...
 
W

William Ryan

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.
 

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