C# 实现 远程桌面
public void CallRemoteWindow(String host, String user, String pass)
{
rdp.Visible = true;
this.Text = "Windows虚拟机" + host;
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
this.WindowState = FormWindowState.Maximized;
rdp.Width = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width;
rdp.Height = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Height;
rdp.Server = host;
rdp.FullScreenTitle = "yyb";
// rdp.
// rdp.SecuredSettings.FullScreen = 0;
rdp.UserName = user;
// rdp.SecuredSettings.
this.Visible = true;
rdp.Connect();
}
通过mstsc进入时,顶端会显示最大化最小化关闭,我设置后直接进入远程桌面页面,没有最大化最小化关闭,需要修改什么设置呢?