Skip to content

Replies

0
Alex Kwong
Alex Kwong answered on Nov 28, 2018 8:19 PM

Hi Michael,

Thank you very much for the valuable information.  This is exactly what is happening ( i.e. Winform handle change ).

We are embedding a 3rd party exe within an infragistic Panel using window's SetParent() based on the win form's handle as one of the arguments.  With the handle refresh after remote desktop reconnect, the embedded application terminates and leave the win form in an unknown state.

Is there anything that we can retain the win form handle?  Or is there any reference from Microsoft that we can look for alternatives?

Thanks very much for your help.

— Alex

0
Alex Kwong
Alex Kwong answered on Nov 28, 2018 3:50 AM

One more finding is that, if the main application is launched as mainform.ShowDialog(), it breaks.  If it is launched via Application.Run( mainform ) then no crash happens.