S
H
A
R
E

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.
As you can see we have made the BackColor property of the TabControl Visible in the Designer and put a custom background behind Transparent Tabpages. This control has been updated to incorporate a modified version of the SelectedIndexChanging event in code examples by Matt Hinz and Ken Tucker. The project needs a custom designer to get the Design time painting to behave properly, but that's something for a later project. You'll find TabControlEx on my Controls page with all the work already done.

TabControl First Edition

VB net Sample:

Csharp Sample:


TabControl Second Edition

For more complete examples see the following articles on codeproject:
Painting Your Own Tabs - First Edition
Painting Your Own Tabs - Second Edition

5 comments:

Anonymous said...

very nice, i like the custom Tab controls, nice work . [bboyseATymail@.com]

Anonymous said...

Hi there I am so thrilled I found your website, I really
found you by accident, while I was searching on Bing
for something else, Nonetheless I am here now and would just like to say thanks a
lot for a marvelous post and a all round entertaining
blog (I also love the theme/design), I don't have time to go through it all at the minute but I have saved it and also added in your RSS feeds, so when I have time I will be back to read a lot more, Please do keep up the fantastic job.

My website; online graduate certificate programs

Hasan Azmaz said...

Can you make a video about this stuf?

Hasan Azmaz said...

Can you make a video about this stuf?

weshuiz 13 said...

still not understanding how toi make costum tab controlls
is there no easy way

Post a Comment