Пример #1
0
 private void setWatermarkLabel(bool On)
 {
     if (watermark != null)
     {
         watermark.Visible = On;
         if (On)
         {
             watermark.Bounds = new Rectangle(this.Location.X + 2,
                                              this.Location.Y + 2,
                                              this.ClientRectangle.Width - 5,
                                              this.ClientRectangle.Height - 5);
             watermark.BringToFront();
         }
     }
 }
Пример #2
0
 private void setWatermarkLabel(bool On)
 {
     if (watermark != null)
     {
         watermark.Visible = On;
         if (On)
         {
             watermark.Bounds = new Rectangle(this.Location.X + 2,
                                              this.Location.Y + 2,
                                              this.ClientRectangle.Width - 3 - DropDownButtonWidth,
                                              this.ClientRectangle.Height - 3);
             watermark.BringToFront();
             //watermark.Invalidate();
         }
     }
 }