S
H
A
R
E
Showing posts with label TabControl. Show all posts
Showing posts with label TabControl. Show all posts

Friday, July 22, 2011

TabDragging Example using TabDragger Class

Add the following classes to your project and make one of the following calls to your forms constructor after the InitializeComponent() call (assumes your TabControl is named TabControl1):
This will give you simple DragArrange of the tabs.
[VB] Dim DragTabs As new TabDragger(TabControl1)
[C#] TabDragger DragTabs = New TabDragger(this.tabControl1);

Read More!

Show Hide Tabpages in Tabcontrol


The Visible property has not been implemented on the Tabcontrol and there is no Insert method. The following methods are a workaround.
This some sample by: Mick Doherty. demonstrated how to manipulate show and hide tabpages in a tabcontrol. See this code, sample in VB net and Csharp

Read More!

Thursday, July 21, 2011

Create Custom Design for A Tab Control


Custom  Design for A Tab Control

A little more work involved here than in the previous case, but definately worth it. Add a new UserControl to your project and replace the code with that shown below.

Read More!

Tab control using custom Tabpages



Vb net Csharp Tabcontrol Custom Tabpages

This was one of the first projects I tackled in dotnet. The object was to have the tabpages support WindowsXP Visual Style. Adding visual style to an inherited TabPage was simple and after a few attempts I got the TabControl to accept the custom Tabpages via the Collection Editor.

Read More!