private void btnRegister_Click(object sender, EventArgs e)
        {
            this.Hide();
            frmPlayerSelectionNew NewUser = new frmPlayerSelectionNew();

            NewUser.ShowDialog();
        }
        public void mute()
        {
            if (muteYes.Checked == true && muteNo.Checked == false)
            {
                playerDetails.activesound = true;
                string output = "Welcome To The GCSE I.C.T Quiz 2015";

                //NotifyIcon em = new NotifyIcon();
                //em.Visible = true;
                //em.Icon = System.Drawing.SystemIcons.Information;
                //em.ShowBalloonTip(3000, "Your Message is Playing", "", ToolTipIcon.Info);
                speech(output);


                if (loginClicked == true)
                {
                    this.Hide();

                    frmLogin login = new frmLogin();
                    login.ShowDialog();
                }
                if (registerClicked == true)
                {
                    this.Hide();
                    frmLoginRegister register = new frmLoginRegister();
                    register.ShowDialog();
                }
            }
            else if (muteNo.Checked == true && muteYes.Checked == false)
            {
                playerDetails.activesound = false;
                if (loginClicked == true)
                {
                    this.Hide();
                    frmLogin login = new frmLogin();
                    login.ShowDialog();
                }
                if (registerClicked == true)
                {
                    this.Hide();
                    frmPlayerSelectionNew register = new frmPlayerSelectionNew();
                    register.ShowDialog();
                }
            }
            else if (muteYes.Checked == true && muteNo.Checked == true)
            {
                MessageBox.Show("Please select a choice regarding if you want speech!!");
            }
            else if (muteNo.Checked == false && muteYes.Checked == false)
            {
                MessageBox.Show("Please select a choice regarding if you want speech!!");
            }
        }
        public void mute()
        {
            //Checks whether the muteYes checkbox is pressed and the muteNo is not checked
            if (muteYes.Checked == true && muteNo.Checked == false)
            {
                //sets the boolean value in the class playerDetails
                playerDetails.activesound = true;
                //Creates a string containing the message
                string output = "Welcome To The GCSE I.C.T Quiz 2015";

                //Calls the method Speech and passes the string output to the Method
                speech(output);

                //creates an if statement to check if the login button has been pressed
                if (loginClicked == true)
                {
                    //Hides the form
                    this.Hide();
                    //Opens Login Page
                    frmLogin login = new frmLogin();
                    login.ShowDialog();
                }
                //Checks if register button has been pressed
                if (registerClicked == true)
                {
                    //Hides the form
                    this.Hide();
                    //Opens Register Form
                    frmPlayerSelectionNew register = new frmPlayerSelectionNew();
                    register.ShowDialog();
                }
            }
            // Checks if the muteNo is checked and if the muteYes hasnt been checked
            else if (muteNo.Checked == true && muteYes.Checked == false)
            {
                //creates an if statement to check if the login button has been pressed
                if (loginClicked == true)
                {
                    //Hides the form
                    this.Hide();
                    //Opens Login Page
                    frmLogin login = new frmLogin();
                    login.ShowDialog();
                }
                //Checks if register button has been pressed
                if (registerClicked == true)
                {
                    //Hides the form
                    this.Hide();
                    //Opens Register Form
                    frmPlayerSelectionNew register = new frmPlayerSelectionNew();
                    register.ShowDialog();
                }
            }
            //checks if both checkboxes are checked
            else if (muteYes.Checked == true && muteNo.Checked == true)
            {
                //Shows a message box to tell them that they have to select one checkbox
                MessageBox.Show("Please select a choice regarding if you want speech!!");
            }
            //checks if both checkboxes are unchecked
            else if (muteNo.Checked == false && muteYes.Checked == false)
            {
                //Shows a message box to tell them that they have to select one checkbox
                MessageBox.Show("Please select a choice regarding if you want speech!!");
            }
        }