If you create custom graphical objects, that know how to draw and hit test,
they will be much faster than controls. This way you use only a single
control.
Regards,
Frank Hileman
check out VG.net:
http://www.vgdotnet.com
Animated vector graphics system
Integrated Visual Studio .NET graphics editor
"Picander" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> hello,
>
> I am developing a boardgame, with a large number of customed
> usercontrols ( e.g. 20 X 20 = 400 ).
> I find it very usefull to use usercontrols, as they can contains
> specific properties and methods, but it makes the application very
> slow to redraw, even if I redraw only a small subset of them.
>
> Is there a way to speed up the drawing time? I included in my codes
> those lines:
>
> this.SetStyle(ControlStyles.DoubleBuffer, true);
> this.SetStyle(ControlStyles.AllPaintingInWmPaint, true);
> this.SetStyle(ControlStyles.UserPaint, true);
>
> but it does not really help.
>
> Is there a way to remove all unused standard methods of the
> usercontrol? Any suggestions?
>
> thx,
>
> picander