From 364a035592b27330b7dc7c5e8110355f4aabf169 Mon Sep 17 00:00:00 2001 From: antiduh Date: Tue, 8 Jul 2014 18:57:07 +0000 Subject: [PATCH] Enable scroll bars on the text boxes. --- TestClient/ClientForm.Designer.cs | 2 ++ TestServer/ServerForm.Designer.cs | 22 ++++++++++++---------- 2 files changed, 14 insertions(+), 10 deletions(-) diff --git a/TestClient/ClientForm.Designer.cs b/TestClient/ClientForm.Designer.cs index 6c0af01..0c18e90 100644 --- a/TestClient/ClientForm.Designer.cs +++ b/TestClient/ClientForm.Designer.cs @@ -148,6 +148,7 @@ private void InitializeComponent() this.sendTextbox.Location = new System.Drawing.Point(6, 19); this.sendTextbox.Multiline = true; this.sendTextbox.Name = "sendTextbox"; + this.sendTextbox.ScrollBars = System.Windows.Forms.ScrollBars.Both; this.sendTextbox.Size = new System.Drawing.Size(302, 298); this.sendTextbox.TabIndex = 7; // @@ -190,6 +191,7 @@ private void InitializeComponent() this.receiveTextbox.Location = new System.Drawing.Point(3, 16); this.receiveTextbox.Multiline = true; this.receiveTextbox.Name = "receiveTextbox"; + this.receiveTextbox.ScrollBars = System.Windows.Forms.ScrollBars.Both; this.receiveTextbox.Size = new System.Drawing.Size(308, 338); this.receiveTextbox.TabIndex = 10; // diff --git a/TestServer/ServerForm.Designer.cs b/TestServer/ServerForm.Designer.cs index 953b7df..5314b64 100644 --- a/TestServer/ServerForm.Designer.cs +++ b/TestServer/ServerForm.Designer.cs @@ -38,13 +38,13 @@ private void InitializeComponent() this.label2 = new System.Windows.Forms.Label(); this.serverUsernameTextbox = new System.Windows.Forms.TextBox(); this.groupBox2 = new System.Windows.Forms.GroupBox(); + this.impersonateButton = new System.Windows.Forms.Button(); this.signButton = new System.Windows.Forms.Button(); this.encryptButton = new System.Windows.Forms.Button(); this.sendTextbox = new System.Windows.Forms.TextBox(); this.groupBox3 = new System.Windows.Forms.GroupBox(); this.receivedTextbox = new System.Windows.Forms.TextBox(); this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel(); - this.impersonateButton = new System.Windows.Forms.Button(); ((System.ComponentModel.ISupportInitialize)(this.portNumeric)).BeginInit(); this.groupBox1.SuspendLayout(); this.groupBox2.SuspendLayout(); @@ -168,6 +168,15 @@ private void InitializeComponent() this.groupBox2.TabStop = false; this.groupBox2.Text = "Send a message to the client"; // + // impersonateButton + // + this.impersonateButton.Location = new System.Drawing.Point(262, 350); + this.impersonateButton.Name = "impersonateButton"; + this.impersonateButton.Size = new System.Drawing.Size(116, 23); + this.impersonateButton.TabIndex = 4; + this.impersonateButton.Text = "Test impersonation"; + this.impersonateButton.UseVisualStyleBackColor = true; + // // signButton // this.signButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); @@ -196,6 +205,7 @@ private void InitializeComponent() this.sendTextbox.Location = new System.Drawing.Point(6, 19); this.sendTextbox.Multiline = true; this.sendTextbox.Name = "sendTextbox"; + this.sendTextbox.ScrollBars = System.Windows.Forms.ScrollBars.Both; this.sendTextbox.Size = new System.Drawing.Size(400, 323); this.sendTextbox.TabIndex = 0; // @@ -216,6 +226,7 @@ private void InitializeComponent() this.receivedTextbox.Location = new System.Drawing.Point(3, 16); this.receivedTextbox.Multiline = true; this.receivedTextbox.Name = "receivedTextbox"; + this.receivedTextbox.ScrollBars = System.Windows.Forms.ScrollBars.Both; this.receivedTextbox.Size = new System.Drawing.Size(407, 370); this.receivedTextbox.TabIndex = 0; // @@ -236,15 +247,6 @@ private void InitializeComponent() this.tableLayoutPanel1.Size = new System.Drawing.Size(838, 395); this.tableLayoutPanel1.TabIndex = 7; // - // impersonateButton - // - this.impersonateButton.Location = new System.Drawing.Point(262, 350); - this.impersonateButton.Name = "impersonateButton"; - this.impersonateButton.Size = new System.Drawing.Size(116, 23); - this.impersonateButton.TabIndex = 4; - this.impersonateButton.Text = "Test impersonation"; - this.impersonateButton.UseVisualStyleBackColor = true; - // // ServerForm // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);