Hi dear,
I want to understand better how works the communication between forms.
1.- After FormLogin was sucessful load FormFind and show the data but FormLogin shout not appear anymore
2.- If in FormFind click to "ok" button, then hide it and show FormEdit
3.- When Form-Edit was loaded the others forms doesent appear.
Cheers,
latina
AlanPosted Aug 1, 2008, 9:42 AM
1. Call the Hide() method on FormLogin so that it's no longer visible. You can't close the start up form without closing the whole application down.
2. FormEdit fe = new FormEdit();
this.Hide();
fe.Show();
3. The other forms will now be hidden when FormEdit is displayed.
Just one thing though. If FormEdit is an MdiChild of FormFind, then you won't be able to have FormEdit visible when FormFind is invisible.
In that case the code would become:
this.MdiContainer = true;
FormEdit fe = new FormEdit();
fe.MdiParent = this;
fe.Show();