コード例 #1
0
        private void ConfigureCientUserControl()
        {
            lock (lock_controlcreation)
            {
                ((System.ComponentModel.ISupportInitialize)(this.client)).BeginInit();

                this.Embed(client);

                this.client.CreateControl();

                this.InvokeIfNecessary(() =>
                {
                    nonScriptable = this.client.GetOcx() as IMsRdpClientNonScriptable4;
                    ((System.ComponentModel.ISupportInitialize)(this.client)).EndInit();
                });
            }

            this.InvokeIfNecessary(() =>
            {
                if (this.Favorite.DesktopSize == DesktopSize.AutoScale)
                {
                    this.client.Dock = DockStyle.Fill;
                }
            });

            this.ConfigureReconnect();
        }
コード例 #2
0
ファイル: RDPConnection.cs プロジェクト: zivalin/Terminals
        private void ConfigureCientUserControl()
        {
            var clientControl = (Control)this.client;

            this.Controls.Add(clientControl);
            this.client.CreateControl();
            this.nonScriptable = this.client.GetOcx() as IMsRdpClientNonScriptable4;
            this.client.BringToFront();
            this.BringToFront();
            this.client.Parent    = this.Parent;
            this.client.AllowDrop = true;
            this.client.Dock      = DockStyle.Fill;
            this.ConfigureReconnect();
        }
コード例 #3
0
ファイル: RDPConnection.cs プロジェクト: gabrewer/Terminals
        private void ConfigureCientUserControl()
        {
            lock (lock_controlcreation)
            {
                ((System.ComponentModel.ISupportInitialize)(this.client)).BeginInit();

                this.Embed(client);

                this.client.CreateControl();

                this.InvokeIfNecessary(() =>
                {
                    nonScriptable = this.client.GetOcx() as IMsRdpClientNonScriptable4;
                    ((System.ComponentModel.ISupportInitialize)(this.client)).EndInit();
                });
            }

            this.InvokeIfNecessary(() =>
            {
                if (this.Favorite.DesktopSize == DesktopSize.AutoScale)
                    this.client.Dock = DockStyle.Fill;
            });

            this.ConfigureReconnect();
        }