TabControl problem.
-
Hi I need to draw a Border around a Tabcontrol ( i mean around the entier Tabcontrol not around the TabPages). i am able to do draw a border by overriding the OnPaint method but the Tabs disappear. This is my code. I have the double buffering code in the constructor.
base.OnPaint(e); Rectangle borderRectangle = ((Control)this).ClientRectangle; int BorderWidth = 1; Color BorderColor = Color.Black; ControlPaint.DrawBorder(e.Graphics, borderRectangle, BorderColor, BorderWidth, ButtonBorderStyle.Solid, BorderColor, BorderWidth, ButtonBorderStyle.Solid, BorderColor, BorderWidth, ButtonBorderStyle.Solid, BorderColor, BorderWidth, ButtonBorderStyle.Solid);
Can anyone help me out in this. My question is do i have to draw the tabs aswell or am i missing something. Regards Deepak -- modified at 14:01 Monday 14th November, 2005