Пример #1
0
 private void TextBox_Message_KeyPress(object sender, KeyPressEventArgs e)
 {
     if (e.KeyChar == 13)
     {
         Button_Send.PerformClick();
         TextBox_Message.Focus();
     }
 }
Пример #2
0
        /// <summary>
        ///
        ///     This will change the submit area to show that the
        ///     send all was successful by changing the colours of
        ///     the panel and components.
        ///
        /// </summary>
        private void ShowSuccess()
        {
            Button_Cancel.Hide();
            Button_Preview.Hide();
            Button_Send.Hide();
            Label_Error.Hide();

            Button_Dashboard.BackColor = Color.FromArgb(19, 174, 71);   // Green
            Button_Dashboard.ForeColor = Color.White;
            Button_Dashboard.Show();

            Label_SubmitTitle.ForeColor = Color.White;
            Label_SubmitTitle.Text      = "Success.";

            Panel_Submit.BackColor         = Color.FromArgb(19, 174, 71); // Green
            Label_Recruiter.ForeColor      = Color.White;
            Label_RecruiterName.ForeColor  = Color.White;
            Label_Applicants.ForeColor     = Color.White;
            Label_ApplicantTotal.ForeColor = Color.White;
        }