1
Answer

Help: Ownerdraw TabControl

David Du

David Du

14y
20.5k
1
Hi, nildo,
I want to create a MyTabControl based on TabControl. By rewriting OnPaint() I draw tabarea and tad head, all works but I can not make background transparent. The background is alway be filled by grey color. I can only fill it by other color but can not make it transparent. TabControl can make background transparent itself.

I tried the way as below.
            SetStyle(ControlStyles.SupportsTransparentBackColor, true);
            this.BackColor = Color.Transparent;
But it does not work. It looks like that the background is filled with grey by some code before my OnPaint() is called.

Thanks.
David.
Answers (1)
0
David Smith
NA 1.9k 0 13y
Exactly. I was helping my sister a homework assignment in college, and I was like Multi cell buffer, I was like who saids Multi Cell Buffer. I was sure if that was the new thing or not. lolololol. But they are basically talking about an Array Buffer.
0
Suthish Nair
NA 31.7k 4.6m 13y
Even any search engine not listing Mulit Cell Buffer.