public Form2() { InitializeComponent(); circularProgressBar1.Value = 0; groupBox1.Parent = pictureBox1; groupBox2.Parent = pictureBox1; groupBox2.BackColor = Color.Transparent; groupBox1.BackColor = Color.Transparent; label4.Parent = pictureBox1; label4.BackColor = Color.Transparent; circularProgressBar1.Parent = pictureBox1; circularProgressBar1.BackColor = Color.Transparent; label3.Parent = pictureBox1; label3.BackColor = Color.Transparent; pictureBox2.BackColor = Color.Transparent; button2.BackColor = Color.Transparent; button3.BackColor = Color.Transparent; button4.BackColor = Color.Transparent; chart_home ch = new chart_home(); label4.Text = (20 - ch.find_empty()).ToString(); }
private void timer1_Tick(object sender, EventArgs e) { saniye++; if (saniye == 1) { chart_home ch = new chart_home(); int x = ch.find_empty(); for (int i = 0; i <= x; i++) { Thread.Sleep(20); circularProgressBar1.Value = i; } timer1.Stop(); } }