Active

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

how can i make array of forms and a button
on the click event of that button i activate a certain form
(as a next of back button )
and where could i put that button as i have put it on the form !!!
and the forms is always changing
i tried to use this.activated = form1 ;
but this code isnt acceptable ??
can i make it using Panels as i add or remove Certain Panel
to the form , how could i fet the Active Panel
i used this.Active control , but didnt work ??
 
Hi,

I assume you want to create a wizard-like form. If this is the case,
switching panels (or other container controls) should work much better than
switching forms. You should keep the active panel at the top of the Z-Order
(and have only this panel visible). I'd even arrange the panels from bottom
to top in their logical order right in the designer, and then it would be
enough just to switch visibility in the code.

In other words, given the panels added to the form's Controls collection in
correct order and Z-Order, you will most likely have only to manipulate the
panels' Visible property to create a wizard-like form.
 
Back
Top