|
|
От: | Kluge | |
| Дата: | 25.11.02 15:44 | ||
| Оценка: | |||
this.SetStyle(ControlStyles.AllPaintingInWmPaint,
| ControlStyles.ResizeRedraw,
| ControlStyles.Opaque, true);
...
protected override void OnPaint(PaintEventArgs pea)
{
base.OnPaint(pea);
pea.Graphics.DrawImage(this.iCanvas,
pea.ClipRectangle,
pea.ClipRectangle,
GraphicsUnit.Pixel);
}