/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { RemoteViewing.Vnc.VncClient vncClient2 = new RemoteViewing.Vnc.VncClient(); this.vncControl = new RemoteViewing.Windows.Forms.VncControl(); this.SuspendLayout(); // // vncControl // this.vncControl.AllowClipboardSharingFromServer = false; this.vncControl.AllowClipboardSharingToServer = false; this.vncControl.AllowInput = true; this.vncControl.AllowRemoteCursor = true; this.vncControl.BackColor = System.Drawing.Color.Black; vncClient2.MaxUpdateRate = 15D; vncClient2.UserData = null; this.vncControl.Client = vncClient2; this.vncControl.Location = new System.Drawing.Point(3, 3); this.vncControl.Name = "vncControl"; this.vncControl.Size = new System.Drawing.Size(686, 588); this.vncControl.TabIndex = 0; this.vncControl.Load += new System.EventHandler(this.vncControl1_Load); // // VNC // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.Controls.Add(this.vncControl); this.Name = "VNC"; this.Size = new System.Drawing.Size(692, 594); this.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { RemoteViewing.Vnc.VncClient vncClient1 = new RemoteViewing.Vnc.VncClient(); this.vncControl = new RemoteViewing.Windows.Forms.VncControl(); this.SuspendLayout(); // // vncControl // this.vncControl.AllowClipboardSharingFromServer = false; this.vncControl.AllowClipboardSharingToServer = false; this.vncControl.AllowInput = true; this.vncControl.AllowRemoteCursor = true; this.vncControl.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.vncControl.BackColor = System.Drawing.Color.Black; vncClient1.MaxUpdateRate = 15D; vncClient1.UserData = null; this.vncControl.Client = vncClient1; this.vncControl.Location = new System.Drawing.Point(12, 12); this.vncControl.Name = "vncControl"; this.vncControl.Size = new System.Drawing.Size(793, 517); this.vncControl.TabIndex = 0; // // frmScreen // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(817, 541); this.Controls.Add(this.vncControl); this.DoubleBuffered = true; this.Name = "frmScreen"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "Screen"; this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.frmScreen_FormClosing); this.Load += new System.EventHandler(this.frmScreen_Load); this.Shown += new System.EventHandler(this.frmScreen_Shown); this.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); RemoteViewing.Vnc.VncClient vncClient1 = new RemoteViewing.Vnc.VncClient(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmScreen)); this.styleManager1 = new DevComponents.DotNetBar.StyleManager(this.components); this.vncControl = new RemoteViewing.Windows.Forms.VncControl(); this.panelEx1 = new DevComponents.DotNetBar.PanelEx(); this.panelEx1.SuspendLayout(); this.SuspendLayout(); // // styleManager1 // this.styleManager1.ManagerStyle = DevComponents.DotNetBar.eStyle.Office2010Blue; this.styleManager1.MetroColorParameters = new DevComponents.DotNetBar.Metro.ColorTables.MetroColorGeneratorParameters(System.Drawing.Color.White, System.Drawing.Color.FromArgb(((int)(((byte)(43)))), ((int)(((byte)(87)))), ((int)(((byte)(154)))))); // // vncControl // this.vncControl.AllowClipboardSharingFromServer = false; this.vncControl.AllowClipboardSharingToServer = false; this.vncControl.AllowInput = false; this.vncControl.AllowRemoteCursor = true; this.vncControl.AutoScroll = true; this.vncControl.AutoSize = true; this.vncControl.BackColor = System.Drawing.Color.Black; this.vncControl.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; vncClient1.MaxUpdateRate = 15D; vncClient1.UserData = null; this.vncControl.Client = vncClient1; this.vncControl.Dock = System.Windows.Forms.DockStyle.Fill; this.vncControl.Location = new System.Drawing.Point(0, 0); this.vncControl.Name = "vncControl"; this.vncControl.Size = new System.Drawing.Size(857, 567); this.vncControl.TabIndex = 0; // // panelEx1 // this.panelEx1.AutoScroll = true; this.panelEx1.CanvasColor = System.Drawing.SystemColors.Control; this.panelEx1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; this.panelEx1.Controls.Add(this.vncControl); this.panelEx1.DisabledBackColor = System.Drawing.Color.Empty; this.panelEx1.Dock = System.Windows.Forms.DockStyle.Fill; this.panelEx1.Location = new System.Drawing.Point(0, 0); this.panelEx1.Name = "panelEx1"; this.panelEx1.Size = new System.Drawing.Size(857, 567); this.panelEx1.Style.Alignment = System.Drawing.StringAlignment.Center; this.panelEx1.Style.BackColor1.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; this.panelEx1.Style.BackColor2.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; this.panelEx1.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine; this.panelEx1.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; this.panelEx1.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; this.panelEx1.Style.GradientAngle = 90; this.panelEx1.TabIndex = 1; this.panelEx1.Text = "panelEx1"; // // frmScreen // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoSize = true; this.ClientSize = new System.Drawing.Size(857, 567); this.Controls.Add(this.panelEx1); this.DoubleBuffered = true; this.EnableGlass = false; this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.Name = "frmScreen"; this.Text = "Screen"; this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.frmScreen_FormClosing); this.Load += new System.EventHandler(this.frmScreen_Load); this.panelEx1.ResumeLayout(false); this.panelEx1.PerformLayout(); this.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { RemoteViewing.Vnc.VncClient vncClient3 = new RemoteViewing.Vnc.VncClient(); this.mainTableLayoutPanel = new System.Windows.Forms.TableLayoutPanel(); this.topTableLayoutPanel = new System.Windows.Forms.TableLayoutPanel(); this.lblPort = new System.Windows.Forms.Label(); this.txtPassword = new System.Windows.Forms.TextBox(); this.txtPort = new System.Windows.Forms.TextBox(); this.btnWhiteBoard = new System.Windows.Forms.Button(); this.btnConnect = new System.Windows.Forms.Button(); this.lblPassword = new System.Windows.Forms.Label(); this.lblHostname = new System.Windows.Forms.Label(); this.txtHostname = new System.Windows.Forms.TextBox(); this.btnClearWhiteBoard = new System.Windows.Forms.Button(); this.vncControl = new RemoteViewing.Windows.Forms.VncControl(); this.tbxLineWidth = new System.Windows.Forms.TextBox(); this.label1 = new System.Windows.Forms.Label(); this.panelLineColor = new System.Windows.Forms.Panel(); this.btnLineColor = new System.Windows.Forms.Button(); this.mainTableLayoutPanel.SuspendLayout(); this.topTableLayoutPanel.SuspendLayout(); this.SuspendLayout(); // // mainTableLayoutPanel // this.mainTableLayoutPanel.AutoSize = true; this.mainTableLayoutPanel.ColumnCount = 1; this.mainTableLayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); this.mainTableLayoutPanel.Controls.Add(this.topTableLayoutPanel, 0, 0); this.mainTableLayoutPanel.Controls.Add(this.vncControl, 0, 1); this.mainTableLayoutPanel.Dock = System.Windows.Forms.DockStyle.Fill; this.mainTableLayoutPanel.Location = new System.Drawing.Point(0, 0); this.mainTableLayoutPanel.Name = "mainTableLayoutPanel"; this.mainTableLayoutPanel.RowCount = 3; this.mainTableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 25F)); this.mainTableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); this.mainTableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F)); this.mainTableLayoutPanel.Size = new System.Drawing.Size(801, 442); this.mainTableLayoutPanel.TabIndex = 0; // // topTableLayoutPanel // this.topTableLayoutPanel.AutoSize = true; this.topTableLayoutPanel.ColumnCount = 13; this.topTableLayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); this.topTableLayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); this.topTableLayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); this.topTableLayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 25F)); this.topTableLayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); this.topTableLayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); this.topTableLayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); this.topTableLayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); this.topTableLayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 25F)); this.topTableLayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); this.topTableLayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 25F)); this.topTableLayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); this.topTableLayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 25F)); this.topTableLayoutPanel.Controls.Add(this.lblPort, 9, 0); this.topTableLayoutPanel.Controls.Add(this.txtPassword, 12, 0); this.topTableLayoutPanel.Controls.Add(this.panelLineColor, 5, 0); this.topTableLayoutPanel.Controls.Add(this.txtPort, 10, 0); this.topTableLayoutPanel.Controls.Add(this.btnWhiteBoard, 1, 0); this.topTableLayoutPanel.Controls.Add(this.btnConnect, 0, 0); this.topTableLayoutPanel.Controls.Add(this.lblPassword, 11, 0); this.topTableLayoutPanel.Controls.Add(this.lblHostname, 7, 0); this.topTableLayoutPanel.Controls.Add(this.txtHostname, 8, 0); this.topTableLayoutPanel.Controls.Add(this.btnClearWhiteBoard, 6, 0); this.topTableLayoutPanel.Controls.Add(this.tbxLineWidth, 3, 0); this.topTableLayoutPanel.Controls.Add(this.label1, 2, 0); this.topTableLayoutPanel.Controls.Add(this.btnLineColor, 4, 0); this.topTableLayoutPanel.Dock = System.Windows.Forms.DockStyle.Fill; this.topTableLayoutPanel.Location = new System.Drawing.Point(0, 0); this.topTableLayoutPanel.Margin = new System.Windows.Forms.Padding(0); this.topTableLayoutPanel.Name = "topTableLayoutPanel"; this.topTableLayoutPanel.RowCount = 1; this.topTableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); this.topTableLayoutPanel.Size = new System.Drawing.Size(801, 25); this.topTableLayoutPanel.TabIndex = 0; // // lblPort // this.lblPort.AutoSize = true; this.lblPort.Dock = System.Windows.Forms.DockStyle.Fill; this.lblPort.Location = new System.Drawing.Point(547, 0); this.lblPort.Margin = new System.Windows.Forms.Padding(0); this.lblPort.Name = "lblPort"; this.lblPort.Size = new System.Drawing.Size(89, 25); this.lblPort.TabIndex = 3; this.lblPort.Text = "VNC服务端端口:"; this.lblPort.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; // // txtPassword // this.txtPassword.Dock = System.Windows.Forms.DockStyle.Fill; this.txtPassword.Location = new System.Drawing.Point(735, 0); this.txtPassword.Margin = new System.Windows.Forms.Padding(0); this.txtPassword.Name = "txtPassword"; this.txtPassword.PasswordChar = '*'; this.txtPassword.Size = new System.Drawing.Size(66, 21); this.txtPassword.TabIndex = 3; this.txtPassword.Text = "123456"; // // txtPort // this.txtPort.Dock = System.Windows.Forms.DockStyle.Fill; this.txtPort.Location = new System.Drawing.Point(639, 3); this.txtPort.Name = "txtPort"; this.txtPort.Size = new System.Drawing.Size(58, 21); this.txtPort.TabIndex = 2; this.txtPort.Text = "5901"; // // btnWhiteBoard // this.btnWhiteBoard.Dock = System.Windows.Forms.DockStyle.Fill; this.btnWhiteBoard.Location = new System.Drawing.Point(57, 0); this.btnWhiteBoard.Margin = new System.Windows.Forms.Padding(0); this.btnWhiteBoard.Name = "btnWhiteBoard"; this.btnWhiteBoard.Size = new System.Drawing.Size(75, 25); this.btnWhiteBoard.TabIndex = 4; this.btnWhiteBoard.Text = "开启注释"; this.btnWhiteBoard.UseVisualStyleBackColor = true; this.btnWhiteBoard.Click += new System.EventHandler(this.btnWhiteBoard_Click); // // btnConnect // this.btnConnect.AutoSize = true; this.btnConnect.Dock = System.Windows.Forms.DockStyle.Fill; this.btnConnect.Location = new System.Drawing.Point(0, 0); this.btnConnect.Margin = new System.Windows.Forms.Padding(0); this.btnConnect.Name = "btnConnect"; this.btnConnect.Size = new System.Drawing.Size(57, 25); this.btnConnect.TabIndex = 0; this.btnConnect.Text = "连接"; this.btnConnect.UseVisualStyleBackColor = true; this.btnConnect.Click += new System.EventHandler(this.btnConnect_Click); // // lblPassword // this.lblPassword.AutoSize = true; this.lblPassword.Dock = System.Windows.Forms.DockStyle.Fill; this.lblPassword.Location = new System.Drawing.Point(700, 0); this.lblPassword.Margin = new System.Windows.Forms.Padding(0); this.lblPassword.Name = "lblPassword"; this.lblPassword.Size = new System.Drawing.Size(35, 25); this.lblPassword.TabIndex = 4; this.lblPassword.Text = "密码:"; this.lblPassword.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; // // lblHostname // this.lblHostname.AutoSize = true; this.lblHostname.Dock = System.Windows.Forms.DockStyle.Fill; this.lblHostname.Location = new System.Drawing.Point(406, 0); this.lblHostname.Margin = new System.Windows.Forms.Padding(0); this.lblHostname.Name = "lblHostname"; this.lblHostname.Size = new System.Drawing.Size(77, 25); this.lblHostname.TabIndex = 7; this.lblHostname.Text = "VNC服务端IP:"; this.lblHostname.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; // // txtHostname // this.txtHostname.Dock = System.Windows.Forms.DockStyle.Fill; this.txtHostname.Location = new System.Drawing.Point(483, 0); this.txtHostname.Margin = new System.Windows.Forms.Padding(0); this.txtHostname.Name = "txtHostname"; this.txtHostname.Size = new System.Drawing.Size(64, 21); this.txtHostname.TabIndex = 1; this.txtHostname.Text = "127.0.0.1"; // // btnClearWhiteBoard // this.btnClearWhiteBoard.Dock = System.Windows.Forms.DockStyle.Fill; this.btnClearWhiteBoard.Location = new System.Drawing.Point(331, 0); this.btnClearWhiteBoard.Margin = new System.Windows.Forms.Padding(0); this.btnClearWhiteBoard.Name = "btnClearWhiteBoard"; this.btnClearWhiteBoard.Size = new System.Drawing.Size(75, 25); this.btnClearWhiteBoard.TabIndex = 5; this.btnClearWhiteBoard.Text = "清空注释"; this.btnClearWhiteBoard.UseVisualStyleBackColor = true; this.btnClearWhiteBoard.Click += new System.EventHandler(this.btnClearWhiteBoard_Click); // // vncControl // this.vncControl.AllowClipboardSharingFromServer = false; this.vncControl.AllowClipboardSharingToServer = false; this.vncControl.AllowInput = true; this.vncControl.AllowRemoteCursor = false; this.vncControl.BackColor = System.Drawing.SystemColors.Control; vncClient3.MaxUpdateRate = 15D; vncClient3.UserData = null; this.vncControl.Client = vncClient3; this.vncControl.Dock = System.Windows.Forms.DockStyle.Fill; this.vncControl.Location = new System.Drawing.Point(3, 28); this.vncControl.Name = "vncControl"; this.vncControl.Size = new System.Drawing.Size(795, 391); this.vncControl.TabIndex = 1; this.vncControl.Connected += new System.EventHandler(this.vncControl_Connected); this.vncControl.ConnectionFailed += new System.EventHandler(this.vncControl_ConnectionFailed); this.vncControl.Closed += new System.EventHandler(this.vncControl_Closed); // // tbxLineWidth // this.tbxLineWidth.Dock = System.Windows.Forms.DockStyle.Fill; this.tbxLineWidth.Location = new System.Drawing.Point(167, 0); this.tbxLineWidth.Margin = new System.Windows.Forms.Padding(0); this.tbxLineWidth.Name = "tbxLineWidth"; this.tbxLineWidth.Size = new System.Drawing.Size(64, 21); this.tbxLineWidth.TabIndex = 0; this.tbxLineWidth.Text = "5"; // // label1 // this.label1.AutoSize = true; this.label1.Dock = System.Windows.Forms.DockStyle.Fill; this.label1.Location = new System.Drawing.Point(132, 0); this.label1.Margin = new System.Windows.Forms.Padding(0); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(35, 25); this.label1.TabIndex = 0; this.label1.Text = "线宽:"; this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; // // panelLineColor // this.panelLineColor.BackColor = System.Drawing.Color.Red; this.panelLineColor.Dock = System.Windows.Forms.DockStyle.Fill; this.panelLineColor.Location = new System.Drawing.Point(306, 0); this.panelLineColor.Margin = new System.Windows.Forms.Padding(0); this.panelLineColor.Name = "panelLineColor"; this.panelLineColor.Size = new System.Drawing.Size(25, 25); this.panelLineColor.TabIndex = 2; // // btnLineColor // this.btnLineColor.Dock = System.Windows.Forms.DockStyle.Fill; this.btnLineColor.Location = new System.Drawing.Point(231, 0); this.btnLineColor.Margin = new System.Windows.Forms.Padding(0); this.btnLineColor.Name = "btnLineColor"; this.btnLineColor.Size = new System.Drawing.Size(75, 25); this.btnLineColor.TabIndex = 8; this.btnLineColor.Text = "线条颜色"; this.btnLineColor.UseVisualStyleBackColor = true; this.btnLineColor.Click += new System.EventHandler(this.btnLineColor_Click); // // MainForm // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(801, 442); this.Controls.Add(this.mainTableLayoutPanel); this.Name = "MainForm"; this.Text = "RemoteViewing - Example VNC Client"; this.mainTableLayoutPanel.ResumeLayout(false); this.mainTableLayoutPanel.PerformLayout(); this.topTableLayoutPanel.ResumeLayout(false); this.topTableLayoutPanel.PerformLayout(); this.ResumeLayout(false); this.PerformLayout(); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { RemoteViewing.Vnc.VncClient vncClient1 = new RemoteViewing.Vnc.VncClient(); this.mainTableLayoutPanel = new System.Windows.Forms.TableLayoutPanel(); this.topTableLayoutPanel = new System.Windows.Forms.TableLayoutPanel(); this.txtPassword = new System.Windows.Forms.TextBox(); this.lblPassword = new System.Windows.Forms.Label(); this.btnConnect = new System.Windows.Forms.Button(); this.lblHostname = new System.Windows.Forms.Label(); this.lblPort = new System.Windows.Forms.Label(); this.txtHostname = new System.Windows.Forms.TextBox(); this.txtPort = new System.Windows.Forms.TextBox(); this.vncControl = new RemoteViewing.Windows.Forms.VncControl(); this.mainTableLayoutPanel.SuspendLayout(); this.topTableLayoutPanel.SuspendLayout(); this.SuspendLayout(); // // mainTableLayoutPanel // this.mainTableLayoutPanel.AutoSize = true; this.mainTableLayoutPanel.ColumnCount = 1; this.mainTableLayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); this.mainTableLayoutPanel.Controls.Add(this.topTableLayoutPanel, 0, 0); this.mainTableLayoutPanel.Controls.Add(this.vncControl, 0, 1); this.mainTableLayoutPanel.Dock = System.Windows.Forms.DockStyle.Fill; this.mainTableLayoutPanel.Location = new System.Drawing.Point(0, 0); this.mainTableLayoutPanel.Name = "mainTableLayoutPanel"; this.mainTableLayoutPanel.RowCount = 2; this.mainTableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle()); this.mainTableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); this.mainTableLayoutPanel.Size = new System.Drawing.Size(636, 452); this.mainTableLayoutPanel.TabIndex = 0; // // topTableLayoutPanel // this.topTableLayoutPanel.AutoSize = true; this.topTableLayoutPanel.ColumnCount = 7; this.topTableLayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); this.topTableLayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); this.topTableLayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50.00001F)); this.topTableLayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); this.topTableLayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 25.00001F)); this.topTableLayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); this.topTableLayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 24.99998F)); this.topTableLayoutPanel.Controls.Add(this.txtPassword, 6, 0); this.topTableLayoutPanel.Controls.Add(this.lblPassword, 5, 0); this.topTableLayoutPanel.Controls.Add(this.btnConnect, 0, 0); this.topTableLayoutPanel.Controls.Add(this.lblHostname, 1, 0); this.topTableLayoutPanel.Controls.Add(this.lblPort, 3, 0); this.topTableLayoutPanel.Controls.Add(this.txtHostname, 2, 0); this.topTableLayoutPanel.Controls.Add(this.txtPort, 4, 0); this.topTableLayoutPanel.Dock = System.Windows.Forms.DockStyle.Fill; this.topTableLayoutPanel.Location = new System.Drawing.Point(0, 0); this.topTableLayoutPanel.Margin = new System.Windows.Forms.Padding(0); this.topTableLayoutPanel.Name = "topTableLayoutPanel"; this.topTableLayoutPanel.RowCount = 1; this.topTableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); this.topTableLayoutPanel.Size = new System.Drawing.Size(636, 29); this.topTableLayoutPanel.TabIndex = 0; // // txtPassword // this.txtPassword.Dock = System.Windows.Forms.DockStyle.Fill; this.txtPassword.Location = new System.Drawing.Point(543, 3); this.txtPassword.Name = "txtPassword"; this.txtPassword.PasswordChar = '*'; this.txtPassword.Size = new System.Drawing.Size(90, 20); this.txtPassword.TabIndex = 3; // // lblPassword // this.lblPassword.AutoSize = true; this.lblPassword.Dock = System.Windows.Forms.DockStyle.Fill; this.lblPassword.Location = new System.Drawing.Point(481, 0); this.lblPassword.Margin = new System.Windows.Forms.Padding(13, 0, 3, 0); this.lblPassword.Name = "lblPassword"; this.lblPassword.Size = new System.Drawing.Size(56, 29); this.lblPassword.TabIndex = 3; this.lblPassword.Text = "Password:"******"btnConnect"; this.btnConnect.Size = new System.Drawing.Size(57, 23); this.btnConnect.TabIndex = 0; this.btnConnect.Text = "Connect"; this.btnConnect.UseVisualStyleBackColor = true; this.btnConnect.Click += new System.EventHandler(this.btnConnect_Click); // // lblHostname // this.lblHostname.AutoSize = true; this.lblHostname.Dock = System.Windows.Forms.DockStyle.Fill; this.lblHostname.Location = new System.Drawing.Point(76, 0); this.lblHostname.Margin = new System.Windows.Forms.Padding(13, 0, 3, 0); this.lblHostname.Name = "lblHostname"; this.lblHostname.Size = new System.Drawing.Size(58, 29); this.lblHostname.TabIndex = 1; this.lblHostname.Text = "Hostname:"; this.lblHostname.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // lblPort // this.lblPort.AutoSize = true; this.lblPort.Dock = System.Windows.Forms.DockStyle.Fill; this.lblPort.Location = new System.Drawing.Point(341, 0); this.lblPort.Margin = new System.Windows.Forms.Padding(13, 0, 3, 0); this.lblPort.Name = "lblPort"; this.lblPort.Size = new System.Drawing.Size(29, 29); this.lblPort.TabIndex = 2; this.lblPort.Text = "Port:"; this.lblPort.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // txtHostname // this.txtHostname.Dock = System.Windows.Forms.DockStyle.Fill; this.txtHostname.Location = new System.Drawing.Point(140, 3); this.txtHostname.Name = "txtHostname"; this.txtHostname.Size = new System.Drawing.Size(185, 20); this.txtHostname.TabIndex = 1; this.txtHostname.Text = "127.0.0.1"; // // txtPort // this.txtPort.Dock = System.Windows.Forms.DockStyle.Fill; this.txtPort.Location = new System.Drawing.Point(376, 3); this.txtPort.Name = "txtPort"; this.txtPort.Size = new System.Drawing.Size(89, 20); this.txtPort.TabIndex = 2; this.txtPort.Text = "5900"; // // vncControl // this.vncControl.AllowClipboardSharingFromServer = true; this.vncControl.AllowClipboardSharingToServer = true; this.vncControl.AllowInput = true; this.vncControl.AllowRemoteCursor = true; this.vncControl.Anchor = System.Windows.Forms.AnchorStyles.None; this.vncControl.BackColor = System.Drawing.Color.Black; vncClient1.MaxUpdateRate = 15D; vncClient1.UserData = null; this.vncControl.Client = vncClient1; this.vncControl.Location = new System.Drawing.Point(201, 154); this.vncControl.Name = "vncControl"; this.vncControl.Size = new System.Drawing.Size(234, 173); this.vncControl.TabIndex = 4; this.vncControl.Connected += new System.EventHandler(this.vncControl_Connected); this.vncControl.ConnectionFailed += new System.EventHandler(this.vncControl_ConnectionFailed); this.vncControl.Closed += new System.EventHandler(this.vncControl_Closed); // // MainForm // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(636, 452); this.Controls.Add(this.mainTableLayoutPanel); this.Name = "MainForm"; this.Text = "RemoteViewing - Example VNC Client"; this.WindowState = System.Windows.Forms.FormWindowState.Maximized; this.mainTableLayoutPanel.ResumeLayout(false); this.mainTableLayoutPanel.PerformLayout(); this.topTableLayoutPanel.ResumeLayout(false); this.topTableLayoutPanel.PerformLayout(); this.ResumeLayout(false); this.PerformLayout(); }