invisible group box
-
I am working on windows forms project and ran into a problem. I created 2 groupboxes on top of each other, A and B. When the page is loaded for the first time, A will be visible and B is invisible. Then when I click a button in A, A will be invisible and B will be visible. The problem is that B will not be visible after I click the button ( I have already set B.visible = true). I think A treats B as its child, so when A is invisible B is also invisible. The two group boxes need to be on top of each other, so the button will act like "Back" button in web browser. Can anyone help me please ?
-
I am working on windows forms project and ran into a problem. I created 2 groupboxes on top of each other, A and B. When the page is loaded for the first time, A will be visible and B is invisible. Then when I click a button in A, A will be invisible and B will be visible. The problem is that B will not be visible after I click the button ( I have already set B.visible = true). I think A treats B as its child, so when A is invisible B is also invisible. The two group boxes need to be on top of each other, so the button will act like "Back" button in web browser. Can anyone help me please ?
You might want to try calling the GroupBox B
.BringToFront()
method to get it to appear on top of A. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome -
You might want to try calling the GroupBox B
.BringToFront()
method to get it to appear on top of A. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnomealso ya if groupbox2 is a child of group 1 it will not work. try doing this place groupbox1on the form place all the controls on it. then place groupbox2 on the form some where else place the controls on it. move it over the groupbox 1. now in groupbox1 button write this groupbox1.visible=false groupbox2.visible=true and in groupbox2 button write this groupbox1.visible=true groupbox2.visible=false hopefully it will work Computer... :confused: Programming... :confused: What That