c#: transparent in tabControl

2.9k Views Asked by At

I'm looking for a way to cause a tabControl (framework 2.0) to be transparent in back ground. I have a custom tabControl that inherite from microsoft tabControl. when I'm trying to paint a transparent image in OnPaintBackground the background becomes black. the problem is that I have under the tabContol a panel with background image so I can't paint in the method OnPaintBackground only the color. I'm looking for a way to find the image which located exacly under the tabControl so I'll be able to paint with graphics.drawimage and it will look transparent.

Does someone has an idea with code? (or another way to do it)

Note: this.SetStyle(ControlStyles.SupportsTransparentBackColor, true) - does not help!

1

There are 1 best solutions below

2
On

Mick Doherty claims he has an transparent tabcontrol control (look for Tabcontrol 2)