View Full Version : Split Container help!


Jaspal
12-20-2006, 02:42 AM
Hi,

Apologies in advance if there is also a similar post regarding this issue!

Basically i have a form with a split container on it. The left panel has a list of buttons for the user to select. The right pane i want the contents of it to change depending on the button that is chosen!

E.g. Button1 is pressed - Customer details are shown in the right pane
Button 2 is pressed - Customer orders are displayed

im have difficulty implmenting this and hope somone can help. Im using VB.NET 2005

Thanks in advance

Jas

skea
01-03-2007, 09:00 PM
Simple! use the visible property, or just add forms to the panel.
For example when you click Button 1, Add a form with corresponding controls in the panel, when you click button 2, dispose off the other forms and add form 2 with its corresponding controls into the panel.
Another way to skin this cat is to use the tab control! Show page by page.