When I use the Controls it always throw out an exception when the code reaches line 810 in DoubleBufferedControl.cs
// If there's no handle, exit
// If the control is disposed, exit
// If the width is zero, exit
|| _Width <= 0
// If the height is zero, exit
|| _Height <= 0
// If the control is invisible, exit
|| !Visible) <-------- line 810
at Microsoft.AGL.Common.MISC.HandleAr(PAL_ERROR ar)
It seems a multi-threading issue.
Is it a problem or just I use this code in a wrong way? If it is a problem, I will try to fix it. If I use the controls wrong, please let me know.