Forms and Panels

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?
 
C

Cor Ligthert

R

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

Cor
 
H

Herfried K. Wagner [MVP]

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.
 
G

Guest

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.
 

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