Introduction
In winform application, TabControl doesn't have any property to change the Font style or Color. But we can change the selected tab page style using DrawItem event in tabcontrol programatically. See the below pictures for different styles.
Style 1:
You can give two color for Tab page in the following way.
bshBack = new System.Drawing.Drawing2D.LinearGradientBrush(e.Bounds,<BR>Color.LightSkyBlue , Color.LightGreen, <BR>System.Drawing.Drawing2D.LinearGradientMode.BackwardDiagonal);
bshFore = Brushes.Blue;
Style 2:
Here I just change the font bold property.
Style 3
In this way, we can apply any color or font to the Tab Controls and Tab Pages.
Conclusion
I think this article will help you to apply the colors and font to a tap pages and any help, comments are much appreciated!
Amalorpavanathan Yagulasamy (AMAL) is a Software Engineer for Protech Solution Inc. and has designed and implemented projects for Arkansas Child Support, Arkansas Budgetting, Michigan Child Support , Massachusetts Child Support, National Informatics Center-India and Indian Oil Corporation. His background is in developing relational databases and n-tier applications on Windows platforms in CMM Level Standards. He can be reached at amal_forum@hotmail.com