Redirecting keys using ActiveX RDP control in C#

G

gen boo

Hi,
I'm writing a simple Rdp client in C#. In the Remote Desktop connection
provided with windows, we can configure to redirect the winkey, and
other hot keys such as alt+tab under the Local Resource tab. But I've
been unable to do the same in an AcvtiveX RDP Client. Reading on MSDN i
thought the following will work -

private void Form1_Load(object sender, EventArgs e)
{
userControl11.axMsRdpClient1.Server = "testserver";//put server here
userControl11.axMsRdpClient1.Connect();
userControl11.axMsRdpClient1.AdvancedSettings2.EnableWindowsKey = 0;
userControl11.axMsRdpClient1.AdvancedSettings2.HotKeyCtrlEsc = 0x23;
}


but it doesn't seem to work.So every time I hit the windows key, its the
local computers windows menu that pops up. I want the remote computer's
windows to do so. Same with the alt+tab and other escape sequences
Anybody knows how to do this?

Rahul
 
M

Mehdi

private void Form1_Load(object sender, EventArgs e)
{
userControl11.axMsRdpClient1.Server = "testserver";//put server here
userControl11.axMsRdpClient1.Connect();
userControl11.axMsRdpClient1.AdvancedSettings2.EnableWindowsKey = 0;
userControl11.axMsRdpClient1.AdvancedSettings2.HotKeyCtrlEsc = 0x23;
}


but it doesn't seem to work.So every time I hit the windows key, its the
local computers windows menu that pops up. I want the remote computer's
windows to do so. Same with the alt+tab and other escape sequences
Anybody knows how to do this?

Well, MSDN says that you must set EnableWindowsKey to a *non-0* value to
enable the feature. You've set it to 0. I'm not too sure about the
HotKeyCtrlEsc property. The documentation isn't very helpful at explaining
what it can be used for.
 

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