Whenever you click on any of the buttons, it will trigger another form and display it into your form....but the buttons will still remain in your form..
I heard from my friends that MSM Messager also make use of these and some sort like can make these button appear in every form...only part of the form changes accordingly everytime...
how did you actually hide all the tab buttons and show only one layout without any tab.....
And when i delete the treeView, i can't really insert another panel into the where the treeView position is...Because the tab control cannot be moved or resize..
I've done this a couple of times. There are some basic steps you need to follow to accomplish it.
1. Create a form with a panel control docked to the left of the form.
2. Create a UserControls per different screen [or UI sections].
3. When a particular button is clicked, dynamically load the coresponding UserControl and set its Dock property to Fill, then remove any previously loaded UserControl.
I guess you get the trick. I'm out of reach of my development machine, if not, I would have post you some codes.
I said how to hide the tabs in the post before the attachment in the other thread and it should be in the code as well.
"You could also use a tab control and at runtime move the Location.Y to something like -22 so it doesn't show the tab headers. It helps to set it to flat tabs too."
Also to add the panel for the buttons you can change the docking on the tabcontrol and then set it back again after you add the other panel.
Originally posted by Edneeis "You could also use a tab control and at runtime move the Location.Y to something like -22 so it doesn't show the tab headers. It helps to set it to flat tabs too."
I have found a better way from other forums using MDI (Multiple Document Interface) forms...
Here are the steps:
Create a mainForm and set it's IsMdiContainer property to True. Then create a panel in the mainForm and set it's Dock property to Left. Add the Buttons to the panel.
The Child form(s) (form2 as you called it) should have their FormBorderStyle set to None. When the Child forms are opened, set their Dock property to Fill (along with setting the MdiParent to the MainForm).
Do you guys know how to exactly adjust the space to put inside the child form so that it can be view in the parent form instead of out of the scope from the parent form...
I found a solution to this is to increase the form size of the child...
That means the parent form size must not be larger than the child size ...
Is there any other ways to deal with this...
And how to change the colour for the parent form...
I can only change it for the child forms...the parent form will remain the same colour...