Hi I have set pane1.hide() and panel2.hide on form load however the panel still shows when I had only one panel it worked fine the new panel is exactly the same size placed directly over the other.

Why does it still show? I know I could use multiple forms it just seems a waste creating the same form over and over just so I can change a small part of it.

any ideas

thanks

M

Recommended Answers

All 2 Replies

try panel1.visible = false , true :D

and be careful mybe panel2 panel is member of panel1 panel or its opposite u should check this look them locations.

for example panel1 and panel 2 is same place
panel1 location is 10; 10 and if panel2 location is 0; 0 its mean panel2 is member of panel1 and if u hide panel 1 automaticly panel2 will be hide :)
good luck

Thanks for the reply I hadn't thought of looking at the location, I needed to select the form and then add the new panel

thanks

M

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.