S
Sagaert Johan
Hi
I have a customcontrol that has a boolean state variable.
The control is placed over a picturebox.
Depending on the value i assign a new Region to the control.
The region is simple and contructed from a graphicpath containing 1 ellipse.
(size no more then 100 pixels)
if (state)
this.Region=new Region(pathA);
else
this.Region=new Region(pathB);
This construction takes 300ms to execute on a 600Mhz Mainboard.
Can someone explain why ?
Whats the workaround ?
Johan
I have a customcontrol that has a boolean state variable.
The control is placed over a picturebox.
Depending on the value i assign a new Region to the control.
The region is simple and contructed from a graphicpath containing 1 ellipse.
(size no more then 100 pixels)
if (state)
this.Region=new Region(pathA);
else
this.Region=new Region(pathB);
This construction takes 300ms to execute on a 600Mhz Mainboard.
Can someone explain why ?
Whats the workaround ?
Johan