private void changeButtonColor(NewButton myButton, Color myColor) { myButton.BackColor = Color.Red; Application.DoEvents(); }
private void makeButton(NewButton myButton, int x, int y) { myButton.Location = new Point(x, y); this.Controls.Add(myButton); }