Пример #1
0
 private void InitializeComponent()
 {
     this.waterTextBox1 = new System.Windows.Forms.WaterTextBox();
     this.SuspendLayout();
     //
     // waterTextBox1
     //
     this.waterTextBox1.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.waterTextBox1.BackColor   = System.Drawing.Color.Transparent;
     this.waterTextBox1.BorderStyle = System.Windows.Forms.BorderStyle.None;
     this.waterTextBox1.Font        = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
     this.waterTextBox1.Location    = new System.Drawing.Point(12, 2);
     this.waterTextBox1.Name        = "waterTextBox1";
     this.waterTextBox1.Size        = new System.Drawing.Size(187, 19);
     this.waterTextBox1.TabIndex    = 0;
     this.waterTextBox1.WaterText   = "水印文字";
     //
     // UCTextBoxEx
     //
     this.BackColor             = System.Drawing.Color.Maroon;
     this.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
     this.Controls.Add(this.waterTextBox1);
     this.DoubleBuffered = true;
     this.Name           = "UCTextBoxEx";
     this.Size           = new System.Drawing.Size(210, 24);
     this.FontChanged   += new System.EventHandler(this.UCTextBox_FontChanged);
     this.ResumeLayout(false);
     this.PerformLayout();
 }
Пример #2
0
 private void InitializeComponent()
 {
     this.waterTextBox1 = new System.Windows.Forms.WaterTextBox();
     this.SuspendLayout();
     //
     // waterTextBox1
     //
     this.waterTextBox1.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.waterTextBox1.AutoCompleteMode   = System.Windows.Forms.AutoCompleteMode.SuggestAppend;
     this.waterTextBox1.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.CustomSource;
     this.waterTextBox1.BorderStyle        = System.Windows.Forms.BorderStyle.None;
     this.waterTextBox1.Font      = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
     this.waterTextBox1.Location  = new System.Drawing.Point(25, 11);
     this.waterTextBox1.Name      = "waterTextBox1";
     this.waterTextBox1.Size      = new System.Drawing.Size(224, 19);
     this.waterTextBox1.TabIndex  = 0;
     this.waterTextBox1.WaterText = "水印文字";
     //
     // UCTextBox
     //
     this.BackColor             = System.Drawing.Color.Transparent;
     this.BackgroundImage       = global::ESkin.Properties.Resources.输入框账号;
     this.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
     this.Controls.Add(this.waterTextBox1);
     this.DoubleBuffered = true;
     this.Name           = "UCTextBox";
     this.Size           = new System.Drawing.Size(273, 40);
     this.FontChanged   += new System.EventHandler(this.UCTextBox_FontChanged);
     this.ResumeLayout(false);
     this.PerformLayout();
 }