public Form2(string name) { InitializeComponent(); myTimer.Tick += new EventHandler(OnTimedEvent); // Set the Interval to 1 second. myTimer.Interval = 1000; player1 = new Contestant(name); MessageBox.Show("Okay " + player1.name + " Let's get ready to play"); Generate_question(); this.ActiveControl = answer_box; answer_box.Focus(); myTimer.Start(); }
public Form1() { InitializeComponent(); Contestant player1 = new Contestant(name_txt.Text); }