"Error creating window handle."

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
 
P

Paul E Collins

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top