From 0d46ab27902c4bc738965f20ba00b963b1d54fee Mon Sep 17 00:00:00 2001 From: Robin Date: Fri, 18 Sep 2015 10:36:50 +0100 Subject: [PATCH] DarkTextBox control --- DarkUI/Controls/DarkTextBox.cs | 19 +++++++++++++++++++ DarkUI/DarkUI.csproj | 3 +++ Example/Forms/MainForm.Designer.cs | 2 +- 3 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 DarkUI/Controls/DarkTextBox.cs diff --git a/DarkUI/Controls/DarkTextBox.cs b/DarkUI/Controls/DarkTextBox.cs new file mode 100644 index 0000000..e27220f --- /dev/null +++ b/DarkUI/Controls/DarkTextBox.cs @@ -0,0 +1,19 @@ +using System.Windows.Forms; + +namespace DarkUI +{ + public class DarkTextBox : TextBox + { + #region Constructor Region + + public DarkTextBox() + { + BackColor = Colors.LightBackground; + ForeColor = Colors.LightText; + Padding = new Padding(2, 2, 2, 2); + BorderStyle = BorderStyle.FixedSingle; + } + + #endregion + } +} diff --git a/DarkUI/DarkUI.csproj b/DarkUI/DarkUI.csproj index 3abc634..4ba540f 100644 --- a/DarkUI/DarkUI.csproj +++ b/DarkUI/DarkUI.csproj @@ -58,6 +58,9 @@ Component + + Component + Component diff --git a/Example/Forms/MainForm.Designer.cs b/Example/Forms/MainForm.Designer.cs index 7abf00e..d166c3c 100644 --- a/Example/Forms/MainForm.Designer.cs +++ b/Example/Forms/MainForm.Designer.cs @@ -526,7 +526,7 @@ // this.toolStripStatusLabel6.Margin = new System.Windows.Forms.Padding(0, 0, 50, 2); this.toolStripStatusLabel6.Name = "toolStripStatusLabel6"; - this.toolStripStatusLabel6.Size = new System.Drawing.Size(230, 14); + this.toolStripStatusLabel6.Size = new System.Drawing.Size(261, 14); this.toolStripStatusLabel6.Spring = true; this.toolStripStatusLabel6.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; //