Showing forms

A

Araceli Pulido

I've implemented a list of forms to keep track of the forms
I have and to
load all of them at the beggining of the application. To
chose how do I
have to show I have this event handler for the closing event:

[....]

if ( ((PPCForm)form).NextForm == "IhmNI")
{
((PPCForm)form).Visible = false;

foreach(PPCForm f in this.List)
{
if (f.GetType().Name.Equals("IhmNI"))
{
f.Visible = true;
}

[...]


The problem is that in this case I don't actually see the
IhmNI form, but
when I see the programs running on the system I can see
IhmNI as the only
form of my program showing, and it actually shows, and I
can work normally
with it, when I click on "Activate".

Does anyone know what is happening?

Maybe the solution it's to do the same thing that
"Activate" does, but I
don't know what does he do.

Thanks in advance.

Regards, Araceli Pulido.
 
A

Araceli Pulido

Yes I tried that.

But, actually, i was trying not using show, because the
goal was to manage the form list by myself.

Any other ideas?

-----Original Message-----
have you tried f.Show(); or/and f.BrintToFront();?

éric

I've implemented a list of forms to keep track of the forms
I have and to
load all of them at the beggining of the application. To
chose how do I
have to show I have this event handler for the closing event:

[....]

if ( ((PPCForm)form).NextForm == "IhmNI")
{
((PPCForm)form).Visible = false;

foreach(PPCForm f in this.List)
{
if (f.GetType().Name.Equals("IhmNI"))
{
f.Visible = true;
}

[...]


The problem is that in this case I don't actually see the
IhmNI form, but
when I see the programs running on the system I can see
IhmNI as the only
form of my program showing, and it actually shows, and I
can work normally
with it, when I click on "Activate".

Does anyone know what is happening?

Maybe the solution it's to do the same thing that
"Activate" does, but I
don't know what does he do.

Thanks in advance.

Regards, Araceli Pulido.


.
 

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