* TabControl.cs: Don't paint by ourselved and instead let OnPaint
being fired if ControlStyles.UserPaint style is activated.
Fixes #371905.
svn path=/trunk/mcs/; revision=103524
+2008-05-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
+
+ * TabControl.cs: Don't paint by ourselved and instead let OnPaint
+ being fired if ControlStyles.UserPaint style is activated.
+ Fixes #371905.
+
2008-05-19 Ivan N. Zlatev <contact@i-nz.net>
* GridEntry.cs: Don't be so strict when setting the value -
internal override void OnPaintInternal (PaintEventArgs pe)
{
+ if (GetStyle (ControlStyles.UserPaint))
+ return;
+
Draw (pe.Graphics, pe.ClipRectangle);
pe.Handled = true;
}