"Error creating window handle."

  • Thread starter Thread starter Arne
  • Start date Start date
A

Arne

Hi,

I keep getting "Error creating window handle." now and
then while running my C# application. I've tried to figure
out why, but I'm stuck.

What is the usual cause of this error ? The error occurs
during a this.PointToScreen( newPos )-call, and "this" is
referencing a instantiated Form class....
newPos is of class Point.

Regards
Arne
 
Arne said:
I keep getting "Error creating window handle." now
and then while running my C# application. I've tried
to figure out why, but I'm stuck.

I've occasionally seen this error when the automatically generated Windows
Forms code has got damaged somehow. If all else fails, try recreating the
form from scratch and then add your old code back in.

P.
 
Back
Top