国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 服務器 > Win服務器 > 正文

利用微軟com組件mstscax.dll實現window7遠程桌面功能

2024-09-10 00:02:11
字體:
來源:轉載
供稿:網友

復制代碼 代碼如下:
namespace Client
{
    public partial class Login : Form
    {
        private string ip = null;

        public Login()
        {
            InitializeComponent();
        }

        public Login(string IP)
        {
            InitializeComponent();
            ip = IP;
        }

        private void Login_Load(object sender, EventArgs e)
        {
            this.FormClosing += Login_Closing;

            this.Text = string.Format("登錄到:{0}", ip);
            // 獲取主機顯示器屏幕分辨率
            Rectangle rect = Screen.PrimaryScreen.Bounds;
            try
            {
                rdp.Server = ip;
                rdp.AdvancedSettings2.RDPPort = 3389;
                rdp.Height = rect.Height;
                rdp.Width = rect.Width;
                //rdp.UserName = "client";
                //rdp.AdvancedSettings2.ClearTextPassword = "client";
                rdp.Connect();
                rdp.FullScreen = true;
                //this.FormBorderStyle = FormBorderStyle.None;
                rdp.FullScreenTitle = this.Text;
            }
            catch (System.Exception ex)
            {
                MessageBox.Show(ex.Message);

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 泸州市| 方山县| 建昌县| 莆田市| 鲜城| 正阳县| 合山市| 平江县| 班戈县| 吉木乃县| 集贤县| 汶上县| 桂阳县| 翁牛特旗| 师宗县| 沭阳县| 宜宾县| 襄汾县| 皋兰县| 南靖县| 方城县| 双鸭山市| 万源市| 华阴市| 扎鲁特旗| 德兴市| 泗阳县| 东辽县| 徐汇区| 宽城| 尚义县| 枣强县| 富锦市| 都江堰市| 霍城县| 睢宁县| 闵行区| 淳安县| 蒙阴县| 淅川县| 灌南县|