Reputation: 21
I was wondering if I could draw the background of a tabpage in C# transparent like so I can see behind the window itself. I though it would give a cool effect but I don't know if or how I can do it.
Upvotes: 2
Views: 7324
Reputation: 609
Set "Background" property to "Transparent":
<TabControl Background="Transparent">
// ... TabItems definition
</TabControl>
And then you can see the the window behind.
Upvotes: 0
Reputation: 1564
You can set the Appearance property of TabControl to Buttons Instead of using BackColor property. That would bring transparent tab page look and cool effect.
Upvotes: 3
Reputation: 2012
VB & C# syntax
TabPage1.BackColor = Color.Transparent
this will show the tabpage1 color as the form color.
Upvotes: 1