Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / June 2007

Tip: Looking for answers? Try searching our database.

Redirecting keys using ActiveX RDP control in C#

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
gen boo - 05 Jun 2007 09:51 GMT
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
Mehdi - 05 Jun 2007 13:10 GMT
> private void Form1_Load(object sender, EventArgs e)
> {
[quoted text clipped - 8 lines]
> 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.

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.