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(); }
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(); }
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(); }