private void btnStart_Click(object sender, EventArgs e) { frm = new WaitForm(Counter); frm.Start(); //frm = new WaitForm(); //if (textBox1.Text != "") //{ // frm.Start(); // frm.startW(int.Parse(textBox1.Text)); // Counter(); // // frm.Stop(); // frm.stopW(); // //frm.startW(int.Parse(textBox1.Text)); //} //else //{ // frm.startW(); // Counter(); // // frm.Stop(); // frm.stopW(); //} }
public static WaitForm getInstance() { if (form == null) { form = new WaitForm(); form.StartPosition = FormStartPosition.CenterScreen; form.ShowInTaskbar = false; form.ControlBox = false; // form.TransparencyKey = Color.White; form.TopMost = true; form.BringToFront(); } // form.StartPosition = FormStartPosition.CenterScreen; return(form); }
public void Start() { Bw.RunWorkerAsync(); newLoading = new WaitForm(); newLoading.ShowDialog(); }