I created a basic WPF app with just a tabControl that has some tabs. One of the tabs should host a RDC session so, after searching the net I did the following:
- Drag and Dropped a WindowsFormHost inside a grid that is inside the tabItem
Created a WinForm user control and dragged and dropped a Microsoft Terminal Services Client Control - version 1 inside it.
"Successfully" connected to the server.
The problem is, it looks like frozen. There is no mouse/keyboard interaction. After adtl research I found a post on the same subject saying to add the following to the code: System.Windows.Forms.Integration.WindowsFormsHost.EnableWindowsFormsInterop();
I have done it but no success. I have tried many options, like creating all the components at runtime, changing the creation order, etc... but nothing solves the problem.
I did the same project in WinForms and it works very well, but this one needs to be in WPF and I don't know how to fix it.