$99 VS $1000+. UI Control for ASP.NET AJAX(contains chart and gridview).
Dock Control for C# WinForms
Use Dock control in C# Windows Forms. Create a shell for a report viewer or explorer in C#.
Home > WinForms UI Controls > User Manual > Getting Started in C#

Dock Control for WinForms C# Tutorial

The following is a tutorial that shows how to create a shell for a report viewer or explorer and demonstrates the layout of ToolWindow and DocumentWindows. In this tutorial, we will find that a ToolWindow will be placed on the left to represent a list of reports and three DocumentWindows, each of which represents a report, will be placed on the right side of the form in Dock. This tutorial will also illustrate how to add a Tree View control to the created windows and synchronize the active Dock Window by using the Tree View instance.

Configure the Dock Control in Windows Forms

  1. Create a Windows Forms application and drag and drop a Dock control on the Form
  2. Switch to the Properties Windows and set the property of Dock as Fill.
  3. Open the Dock Advanced Layout Designer dialog by choosing the Dock Smart Tag and click the Show Advanced Layout Designer.
  4. Dock a Tool Window at the left by clicking the left green arrow on the top of the Ribbon Bar.
  5. Add 3 instances of DocumentWindows by clicking on the Add DocumentWindow button on the Ribbon Bar.
  6. Save the Changes of the layout to the Dock and Close Dock Advanced Layout Designer dialog by clicking the Save and Close button. The Dock Control advanced layout designer offers entire drag and drop, user interaction support for more complex scenarios.
  7. Users can choose the ToolWindow on the left of the designer to verify if the currently chosen tool is ToolWindow in the Properties Window in VS. Set the property of the ToolWindow Text to Reports
  8. Choose a DocumentWindows in the designer by clicking the tab, then clicking inside the client area.
  9. Change the Name property of the DocumentWindow as caProductList and set the Text property to Product List.
  10. Choose next in DocumentWindow and change the Name property as caProductByClass and set the Name of Text property as Product By Class.
  11. Choose the final DocumentWindow and change the Name property as caTop8Customers and change the Name of Text property as Top 8 Customers.
  12. Drag and Drop a TreeView control to the Reports ToolWindow and change the Dock property of the Control as Fill.
  13. Check if the WinFormsControls.UI and WinFormsControls.UI.Dock has been used in the C# using section of the code.
  14. Create a Form Load event handler and copy the C# code below and paste to the event handler.
  15. Create a SelectedNodeChanged event handler and add the following C# code to it.
  16. Debug the project to run the application and you will find the completed application with Dock
UI Controlsfor Windows Forms
.NET WinForms UI Overview.NET WinForms UI Features.NET WinForms UI GuideC# WinForms UI DesignVB.NET WinForms UI Design
WinForms UI Controls