Activate Window

  • Thread starter Thread starter Leonardo Castillo
  • Start date Start date
L

Leonardo Castillo

Hello to everyone.

I have an application in VB.NET for Pocket PC. It's start with Form1, which
call a form2. Form2 has a menu for the user. The user select an option and
this form call another form (Form3.Show or Form3.ShowDialog).

At the end of the process in the Form3, is closed, but the Form2 not appear
again. It's still in memory but is not visible. How can i do to activate
this form again ? (Using VB.NET). In something place in this forum mencioned
"pinvoke" ... this is a solution for this problem?... can send me an
example?

Thanks,

Leonardo Castillo
 
Leonardo,
It should be as simple as setting:
Form2.Visible = True

I've wrote a class that wraps up all of the navigation of forms, similar to what you are doing, and that is all I had to do.
Try it out and let me know.

Roger
 
Back
Top