Saturday, July 23, 2011

Custom Tab Control With Cool Appearance

03 Feb 2005 - New Bevel Appearance added and Draw Methods exposed for Inheritance Overrides.
20 Feb 2005 - Keyboard and mouse navigation improved to ignore/skip-over disabled TabPages.
Enabled property exposed on TabPageEX and modifications made so as to comply with Microsoft FxCop rules.
17 May 2005 - Bug Fix: SelectedIndexChanged was being fired twice when tab changed by mouse.
25 May 2005 - Bug Fix: When used with some 3rd party control libraries the TabAppearanceEX Enumeration was 'misplaced' by the IDE. This was due to nesting and so the enum has been moved. Also fixed a few new FXCop violations and added a custom designer to TabpageEX as the control misbehaved in VS2005 when using the standard tabpage designer.
11 June 2005 - Added InsertTabPage method and implemented the TabPageEX Hide() and Show() methods.
27 June 2005 - Added Visual Styles Support.
29 July 2005 - Added GroupBoxEX to the dll. Leave GroupBoxEX at FlatStyle.Standard as I have overridden the OnPaintBackGround() and OnPaint() methods to draw the control with Visual Style as necessary. Set the GroupBoxEX's BackColor property to Transparent and you should see the Themed Tabpage background (when it's on a themed tabpage). The only problem with this being that all controls added to the GroupBoxEX will inherit the Transparent Background color.
11 August 2005 - Bug Fix: Arrow Key navigated tabs even when Tabcontrol not focused, eg; when textbox as child of tabpage was selected.
24 March 2006 - Bug Fix: MouseDown and Click events were not being fired.
06 Dec 2006 - Bug Fix: Null Reference exception was raised randomly when changing TabPage Selection. Thanks to Sam J Martinez for his help in locating and fixing this bug.
22 March 2007 - Bug Fix: ArgumentException raised occasionally.
20 July 2007 - Bug Fix: Undo/Redo now works on the Design Surface.
21 October 2008 - Bug Fix: SelectedTabFontStyle defaulted to Regular rather than Controls Font.Style.
This control is a more complete version of the one shown in my Tips page. Unlike the TabControl from which it Inherits, you can set any Alignment value with any Appearance value.
An OnSelectedIndexChanging Method has been added to the TabControl so that you may cancel selection of a TabPage.
Disabled Tabs do not recieve a Click event.
Set AllowDrop and AllowTabDrag to True and you are able to drag TabItems around at runtime.
Mnemonic support has been added.
You may have to play around with Padding if you use non standard Font.

Download Here...
From: Mick Doherty


Y2K said...
This comment has been removed by the author.
Y2K said...

this is so awsome

Anonymous said...

Magnificent goods from you, man. I've understand your stuff previous to and you are just too wonderful. I actually like what you have acquired here, certainly like what you are saying and the way in which you say it. You make it entertaining and you still care for to keep it sensible. I can not wait to read far more from you. This is really a great web site.

Feel free to surf to my webpage; Graduate certificate

Anonymous said...

Wow, that's what I was exploring for, what a data! present here at this blog, thanks admin of this site.

my blog ... Legal ecstasy

Post a Comment