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

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

利用微軟com組件mstscax.dll實現(xiàn)window7遠程桌面功能

2024-09-10 00:02:11
字體:
供稿:網(wǎng)友

復制代碼 代碼如下:
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);

發(fā)表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發(fā)表
主站蜘蛛池模板: 辰溪县| 怀仁县| 株洲市| 炎陵县| 固阳县| 济南市| 湘乡市| 昌都县| 喀喇沁旗| 徐水县| 元阳县| 临清市| 海门市| 哈巴河县| 贵州省| 安国市| 颍上县| 水富县| 安泽县| 西和县| 铜陵市| 雅江县| 榕江县| 镇康县| 资源县| 志丹县| 威信县| 漳州市| 明星| 米林县| 宁安市| 呼图壁县| 和田县| 长兴县| 布拖县| 大竹县| 华阴市| 曲靖市| 南郑县| 湖北省| 郯城县|