Click here to Skip to main content
15,920,005 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hey i need help
am trying to open multiple pages on a single form in the programming language visual basic

i have enter this code in a button which follows
VB
panel1.hide()
panel2.show()

it suppose to hide everything which is on panel1 and show everything which is on panel2.however that did not work and i have tried this code also
VB
panel1.visible = false
panel2.visible = true 

and i did not get what i wanted

thx in advance
Posted
Updated 28-Oct-12 10:13am
v2

1 solution

The problem likely is that the panel you are hiding is still behind the "invisible" one.

Try

C#
panel1.hide();
panel1.visible = false;
panel2.show();
panel2.visible = true;
panel2.BringToFront();


I am sure that the .hide or .visible methods are probably not both necessary but you'd have to test it.
 
Share this answer
 
Comments
sean871 28-Oct-12 20:21pm    
thanks a lot but i have found another way to slove it

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900