Beispiel #1
0
 private void ButtonMore_Click(object sender, EventArgs e)
 {
     if (ButtonMore.Text == ">>")
     {
         this.Height = this.Height + 300;
         RichTextBoxMoreInfo.Location = new Point(LabelMoreInfo.Left, LabelMoreInfo.Top + LabelMoreInfo.Height + Spacing);
         RichTextBoxMoreInfo.Height   = this.ClientSize.Height - RichTextBoxMoreInfo.Top - 45;
         RichTextBoxMoreInfo.Width    = this.ClientSize.Width - 2 * Spacing;
         RichTextBoxMoreInfo.Anchor   = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
         RichTextBoxMoreInfo.Visible  = true;
         ButtonOK.Focus();
         ButtonMore.Text = "<<";
     }
     else
     {
         this.SuspendLayout();
         ButtonMore.Text             = ">>";
         this.Height                 = ButtonMore.Top + ButtonMore.Height + Spacing + 45;
         RichTextBoxMoreInfo.Visible = false;
         RichTextBoxMoreInfo.Anchor  = AnchorStyles.None;
         this.ResumeLayout();
     }
 }
Beispiel #2
0
 private void WarningBox_Load(object sender, EventArgs e)
 {
     ButtonOK.Focus();
 }