Example #1
0
        //Brings You To The Help Form
        private void btnHelp_Click(object sender, EventArgs e)
        {
            //Opens form and Checks if the same form is open
            if (helpForm == null || helpForm.Text == "")
            {
                helpForm = new HelpForm();

                helpForm.Dock = DockStyle.Fill;
                helpForm.Show();
            }
            else if (CheckOpened(helpForm.Text))
            {
                //If window is already open, and the button is clicked again, the window will be brought back up.
                helpForm.WindowState = FormWindowState.Normal;
                helpForm.Dock = DockStyle.Fill;
                helpForm.Show();
                helpForm.Focus();
            }
        }