Re: C#) How to keep drawing graphics by GDI
- From: eusebiu <MarcuEusebiu@xxxxxxxxx>
- Date: Fri, 08 Jun 2007 01:49:58 -0700
To get redraw the rectangles or whatever your doing, you have to call
Invalidate() method. For minimizing or overrap... use the bellow
method.
protected override void DefWndProc(ref Message m)
{
if (m.Msg == 0x47)//WM_WINDOWPOSCHANGED
{
this.Invalidate();
}
base.DefWndProc(ref m);
}
As you've heard, you should paint on the Paint event. ( you'll have
the graphics into PaintEventArgs e properties). And maybe instead of a
form you should use a UserControl... :)\
Hope this helps
.
- Follow-Ups:
- Re: C#) How to keep drawing graphics by GDI
- From: cty0000
- Re: C#) How to keep drawing graphics by GDI
- References:
- C#) How to keep drawing graphics by GDI
- From: cty0000
- C#) How to keep drawing graphics by GDI
- Prev by Date: Re: Newbie Q: Declare variable IN the loop or BEFORE the loop?
- Next by Date: Re: static class inheritance, generalized
- Previous by thread: C#) How to keep drawing graphics by GDI
- Next by thread: Re: C#) How to keep drawing graphics by GDI
- Index(es):
Relevant Pages
|