Пример #1
0
        private void button3_Click(object sender, EventArgs e)
        {
            Test_Captchas t = new Test_Captchas();

            this.Visible = false;
            t.Show();
        }
        private void pictureBox2_Click(object sender, EventArgs e)
        {
            OpenFileDialog op = new OpenFileDialog();

            if (op.ShowDialog() == DialogResult.OK)
            {
                string b = "";
                b     = null;
                pwath = null;
                pictureBox1.ImageLocation = null;
                pwath = op.FileName;
                pictureBox1.ImageLocation = pwath;
                b = Path.GetFileNameWithoutExtension(pwath);
                if (b.Contains("Captcha-"))
                {
                    string[] f = b.Split('-');

                    name = f[1];
                }
                else
                {
                    MessageBox.Show("Pl, select a Captcha generated from this App..", "Format Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
                    Test_Captchas h = new Test_Captchas();
                    h.Show();

                    this.Close();
                }
            }
        }