Windows Develop Bookmark and Share   
 index > Windows Forms General > Master Page concept in C#
 

Master Page concept in C#

Hi,

I am creating a tutorial in Windows forms application using C#. And I want to have a master page that contains the list of chapters/ topics on the left hand side (like a toolbar). I just want the contents to keep changing based on the selection.


Can somebody please help me??
Tonu123  11 hours 20 minutes ago
In the past, I've used a DevExpress SideBar control for this type of functionality ... but it's not free. But of course, you can accomplish the same sort of thing in different ways. Another way of doing it would be this:

Divide your Form up with two Panels and a splitter between them. In the left panel, use a TreeView to list your chapters/topics. When you click an item from the left side, create an instance of the proper UserControl based on that TreeView Item clicked, and dynamically Add it to the right-side Panel's Controls collection.

Hope that helps.
~~Bonnie Berent [C# MVP]

(new blog --- not many posts yet --- be patient)
geek-goddess-bonnie.blogspot.com
BonnieB  10 hours 56 minutes ago

You can use google to search for other answers

Custom Search

More Threads

• create dinamically control is very slow__
• memory leak issues this.Invoke(new EventHandler (ReadData));
• Mouse hover doesn't fire whilst performing Drag & drop operation
• TreeView.Invoke Bug - NullPointerException
• Changing format on PropertyGrid
• Treeview Checkboxes bitmaps
• getting track info from axmediaplayer
• Why this is not working? Method (Delegate, array<Object>[]()[])
• is there a richtextbox which behaves likes textarea control in html
• ComboBox Binding Problem