A
Alexander Jhin
I have this very basic Custom Control:
public class TestPanel : Panel
{
public TestPanel() : base()
{
this.SetStyle(
ControlStyles.AllPaintingInWmPaint |
ControlStyles.Opaque |
ControlStyles.UserPaint,
true);
}
protected override void OnPaint(PaintEventArgs e)
{
Invalidate(false);
base.OnPaint(e);
}
}
When I add it to a form, OTHER controls in the same form stop
rendering correctly (you can see the desktop where buttons should be,
text boxes only display text when you click on them, etc.)
Anyone know why this is happening? Thanks in advance.
public class TestPanel : Panel
{
public TestPanel() : base()
{
this.SetStyle(
ControlStyles.AllPaintingInWmPaint |
ControlStyles.Opaque |
ControlStyles.UserPaint,
true);
}
protected override void OnPaint(PaintEventArgs e)
{
Invalidate(false);
base.OnPaint(e);
}
}
When I add it to a form, OTHER controls in the same form stop
rendering correctly (you can see the desktop where buttons should be,
text boxes only display text when you click on them, etc.)
Anyone know why this is happening? Thanks in advance.