Forms and Panels

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

Guest

I have got two forms open in one panel and i want to bring the one at the
back to the front. I want to do this by using a button located in another
panel but i can't seem to work out how.
Also when i close a form i want it to remove the corresponding button in the
other panel and as much as i have tried i can't figure that out either.

Any help?
 
R

Normally this is just hide the panel or the same commands visible is true
and false

Cor
 
RBirney said:
I have got two forms open in one panel and i want to bring the one at the
back to the front. I want to do this by using a button located in another
panel but i can't seem to work out how.
Also when i close a form i want it to remove the corresponding button in
the
other panel and as much as i have tried i can't figure that out either.

You can call the form's 'Activate' method to activate it.
 
I may just be thick but i still can't get it to do it, so i will explain the
situation a bit better.
When i load a form it loads in panel2 and also creates a button in panel1,
it does this every time a form is loaded. When a button in panel1 is pressed
i want it to bring the related form to the front in panel2. At the end when
i close a form down in panel2 i want it to also remove the button related to
it in panel1.

I just can't work out the code for it.
 
Back
Top