Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

no mouse response on remote desktop connection in a wpf app

$
0
0

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:

  1. Drag and Dropped a WindowsFormHost inside a grid that is inside the tabItem
  2. Created a WinForm user control and dragged and dropped a Microsoft Terminal Services Client Control - version 1 inside it.

  3. "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.


Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>