like_antani

Hi All,

yesterday I installed Vista on my computer and now I'm trying to compile and run some C# projects. I have an error while search the handle of a usercontrol; this is the error:

Error creating window handle.

Any idea Does Vista manages in a different way all this

Thanx in advance

Marcello



Re: General Windows Vista Development Issues CreateHandle method with C# on Windows Vista

Figo Fei - MSFT

I moved it to General Windows Vista Development Issues.

Hope you get satisfactory answers.






Re: General Windows Vista Development Issues CreateHandle method with C# on Windows Vista

like_antani

OK thanx!!

Cheers

Marcello





Re: General Windows Vista Development Issues CreateHandle method with C# on Windows Vista

Andreas Johansson

Do you have some more details about what code is doing when you get this error and when you get it




Re: General Windows Vista Development Issues CreateHandle method with C# on Windows Vista

like_antani

I'm trying to get the handle of a UserControl with simply call this.Handle property of my usercontrol.

Marcello

 





Re: General Windows Vista Development Issues CreateHandle method with C# on Windows Vista

Andreas Johansson

According to MSDN it shouldn't throw any exception when accessing that property. It can be that for some reason there is no handle created.

If you check the entry for CreateHandle method you will see it is not recommended to call it directly and prefered is to use CreateControl method instead. Maybe that is an idea to try