user2298607
user2298607

Reputation: 21

Making a transparent tab background?

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

Answers (3)

Edward Zhang
Edward Zhang

Reputation: 609

Set "Background" property to "Transparent":

<TabControl Background="Transparent">
    // ... TabItems definition
</TabControl>

And then you can see the the window behind.

Upvotes: 0

Praveen VR
Praveen VR

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

Mogli
Mogli

Reputation: 2012

VB & C# syntax

TabPage1.BackColor = Color.Transparent 

this will show the tabpage1 color as the form color.

Upvotes: 1

Related Questions