RDP UseMultiMon采用无缝模式 [英] RDP UseMultiMon in seamless mode

查看:428
本文介绍了RDP UseMultiMon采用无缝模式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好



我们正在使用AxMsRdpClient6NotSafeForScripting ActiveX控件将我们的应用程序放在远程桌面会话中。



我有一切正常工作 - 应用程序以无缝模式运行(RemoteProgram.RemoteProgramMode = true)。



我们有1个问题。我们无法使多台显示器正常工作。我的代码:

Hi all

We are using AxMsRdpClient6NotSafeForScripting ActiveX control to lanch our application in a remote desktop session.

I have everything working as we want - the application is running in seamless mode (RemoteProgram.RemoteProgramMode = true).

We have 1 problem. We can't get multi monitors to work properley. My code:

# _oRDPClient is a AxMsRdpClient6NotSafeForScripting object on the form
((ISupportInitialize)_oRDPClient).BeginInit();
IMsRdpClientNonScriptable5 sec = (IMsRdpClientNonScriptable5)_oRDPClient.GetOcx();
sec.UseMultimon = true;
sec.DisableConnectionBar = true;
sec.LaunchedViaClientShellInterface = false;
_oRDPClient.RemoteProgram.RemoteProgramMode = true;



有了上述内容,我确实有多台显示器工作,但我也有远程服务器桌面在后台意味着我无法回到我的本地桌面。



如果我删除sec.UseMultiMon行,应用程序启动时,我看到我的本地桌面,但我无法将应用程序移动到第二个屏幕。



有没有我错过的东西。



或者,有没有办法可以解决哪个是辅助监视器并强制应用程序在监视器上启动而不是主监视器。



非常感谢。



詹姆斯


With the above, I do have multi monitors working, but I also have the remote server desktop in the background meaning I can't get back to my local desktop.

If I remove the sec.UseMultiMon line, the application launchs, I see my local desktop, but I can't move the application to the second screen.

Is there something which I have missed.

Alternatively, is there a way that I can work out which is the secondary monitor and force the application to launch on that monitor instead of the primary one.

Many thanks.

James

推荐答案

我在猜没有其他人遇到过这个问题!



James
I am guessing that nobody else has come across this problem!

James


嗨詹姆斯,



我正在做同样的工作,启动我们的应用程序在远程计算机上运行,​​但是我无法启动应用程序。

那么您是否愿意分享有关如何设置AxMsRdpClient6NotSafeForScripting实例的代码。

我的代码如下:

Hi James,

I am doing the same work that start up our application on a remote machine, but I fail to start up the application.
So would you kindly enough share your code about how to set up the AxMsRdpClient6NotSafeForScripting instance.
My code is below:
// Connect button clicked
private void _btn_connect_Click(object sender, EventArgs e)
{
    this._rdp.RemoteProgram.RemoteProgramMode = true;
    
    this._rdp.Server = this._tb_svrname.Text;
    this._rdp.UserName = this._tb_usrname.Text;
    this._rdp.AdvancedSettings2.ClearTextPassword = this._tb_pswd.Text;
    this._rdp.ColorDepth = 32;
    this._rdp.DesktopWidth = 1024;
    this._rdp.DesktopHeight = 768;
    this._rdp.AdvancedSettings2.SmartSizing = true;

    this._rdp.Connect();
}

// Connected event handler
private void OnRdpConnected(object sender, EventArgs e)
{
    this._lb_status.Text = "Connected RAU";

    // Start up application, but I failed, I always get a blue screen and 
   // the connect session quit after a while.
    this._rdp.RemoteProgram.ServerStartProgram(@"D:\diaoe\private\TECAN\WorkstationController_svnCHN2\bin\Debug\WorkStationController.exe", null, @"D:\diaoe\private\TECAN\WorkstationController_svnCHN2\bin\Debug", false, "", false);
}





我做错了什么?

提前多多谢谢!



-Elbert



Did I do something wrong?
Thanks a lot in advance!

-Elbert


这篇关于RDP UseMultiMon采用无缝模式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆