Nested Groupbox with FlatStyle.System painted wrong

  • Thread starter Thread starter MarkoH
  • Start date Start date
\\\
using System.Windows.Forms;

public class FixedGroupBox : GroupBox
{
private const int WM_PRINTCLIENT = 0x0318;

protected override void WndProc(ref Message m)
{
if (m.Msg == WM_PRINTCLIENT)
m.Result = (IntPtr)1;
else
base.WndProc(ref m);
}
}
///
 
This solution was posted to the newsgroups once before. It is an old problem
that used to display itself in VS6, and may well still do so, but I no
longer use VS6 and so can't confirm that. It has resurfaced in Framework 1.1
sp1.
 
Back
Top