private void InitializeComponent() { this.BaseText = new UILibrary.TCWatermarkText(); this.SuspendLayout(); // // BaseText // this.BaseText.BorderStyle = System.Windows.Forms.BorderStyle.None; this.BaseText.Dock = System.Windows.Forms.DockStyle.Fill; this.BaseText.EmptyWaterColor = System.Drawing.Color.DarkGray; this.BaseText.EmptyWaterText = ""; this.BaseText.Font = new System.Drawing.Font("微软雅黑", 9.75F); this.BaseText.Location = new System.Drawing.Point(5, 5); this.BaseText.Margin = new System.Windows.Forms.Padding(0); this.BaseText.Name = "BaseText"; this.BaseText.Size = new System.Drawing.Size(175, 25); this.BaseText.TabIndex = 1; // // SkinTextBox // this.BackColor = System.Drawing.Color.Black; this.Controls.Add(this.BaseText); this.Cursor = System.Windows.Forms.Cursors.IBeam; this.DoubleBuffered = true; this.Margin = new System.Windows.Forms.Padding(0); this.MinimumSize = new System.Drawing.Size(0, 28); this.Name = "SkinTextBox"; this.Padding = new System.Windows.Forms.Padding(5); this.Size = new System.Drawing.Size(185, 28); this.ResumeLayout(false); this.PerformLayout(); }
protected void InitializeComponent() { _waterTextBox = new TCWatermarkText(); base.SuspendLayout(); this._waterTextBox.BorderStyle = BorderStyle.None; this._waterTextBox.Dock = DockStyle.Fill; this._waterTextBox.Font = new System.Drawing.Font("微软雅黑", 9.75f); this._waterTextBox.Location = new Point(5, 5); this._waterTextBox.Margin = new Padding(0); this._waterTextBox.Name = "_waterTextBox"; this._waterTextBox.Size = new Size(0xaf, 0x12); this._waterTextBox.TabIndex = 1; this._waterTextBox.EmptyWaterColor = Color.DarkGray; this._waterTextBox.EmptyWaterText = ""; base.AutoScaleMode = AutoScaleMode.None; this.BackColor = Color.Black; base.Controls.Add(this._waterTextBox); this.Cursor = Cursors.IBeam; this.DoubleBuffered = true; base.Margin = new Padding(0); this.MinimumSize = new Size(0, 0x1c); base.Name = "TCTextBox"; base.Padding = new Padding(5); base.Size = new Size(0xb9, 0x1c); base.ResumeLayout(false); base.PerformLayout(); }