Example #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            Category_level cl = new Category_level();
            DialogResult   result;

            result = cl.ShowDialog();
            if (result == DialogResult.OK)
            {
                str             = cl.textBox;
                wordToFind      = str.Trim();
                button1.Visible = false;
            }
            MessageBox.Show(str);
            RestartTheGame();
        }