private void domainTextBox_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Enter) { OKbutton.PerformClick(); // these last two lines will stop the beep sound e.SuppressKeyPress = true; e.Handled = true; } }
public void uptateStatusBar(int value) { progressBar1.Value = value; //progressBar1.Update(); if (progressBar1.Value == progressBar1.Maximum) { progressBar1.Hide(); OKbutton.Show(); label1.Text = "Successfully Exported Data to Excel"; finalLabel.Hide(); } }
public PleaseWaitForm() { InitializeComponent(); OKbutton.Hide(); }