![]() |
Desktop Development »
Tabs & Property Pages »
Tabs and Property Pages
Intermediate
License: The Code Project Open License (CPOL)
Visual Studio TabStripBy Jared James SullivanA TabStrip control as seen in Visual Studio 2008. |
C# (C# 2.0, C# 3.0), VB (VB 8.0, VB 9.0), Windows (Win2K, WinXP, Win2003, Vista), .NET (.NET 2.0, .NET 3.0, .NET 3.5), Win32, Visual Studio (VS2008), GDI, GDI+, Dev
|
|
Advanced Search |
|
|
|
||||||||||||||||

I have replicated Visual Studio's vertical TabStrip control from the ground up. This lightweight control doesn't have containers which you can dump controls onto, as I have created the control to be used with forms instead of containers. Enjoy this 173 code liner.
I was looking at creating something similar to the VS2008 Property Pages. I started off by mimicking the exact look and feel.
There are four custom properties..
Tabs()TabHeightHoverSelectedThere are two custom events..
ItemHoverSelectedIndexChangedSimply set the Tabs() property in the IDE, and adjust TabHeight, if desired. From there, you can catch the _SelectedIndexChanged event at runtime.
Private Sub XSlider1_SelectedIndexChanged(ByVal eIndex As Integer) _
Handles XSlider1.SelectedIndexChanged
Trace.WriteLine(eIndex.ToString + " - " + Me.XSlider1.Tabs(eIndex).ToString)
End Sub
The user has the option of docking the control to the left or right side of the form. Where Vista is installed, the font will snap to "Segoe UI".
| You must Sign In to use this message board. | ||||||||||||||||||||||
|
||||||||||||||||||||||
|
||||||||||||||||||||||
|
||||||||||||||||||||||
|
||||||||||||||||||||||
General
News
Question
Answer
Joke
Rant
Admin
|
PermaLink |
Privacy |
Terms of Use
Last Updated: 19 Jan 2008 Editor: Smitha Vijayan |
Copyright 2008 by Jared James Sullivan Everything else Copyright © CodeProject, 1999-2009 Web19 | Advertise on the Code Project |