Beispiel #1
0
        private void button6_Click(object sender, EventArgs e)
        {
            this.Hide();
            Form9 f1 = new Form9();

            f1.Activate();
            f1.Show();
        }
        private void button1_Click(object sender, EventArgs e)
        {
            if (textBox1.Text.Equals("pratik") && textBox2.Text.Equals("pratik"))
            {
                string        connectionString;
                SqlConnection con;
                connectionString = @"Data Source=DESKTOP-U2LF2JT;Initial Catalog=master;Integrated Security=True";
                con = new SqlConnection(connectionString);
                con.Open();
                MessageBox.Show("Connection created");

                this.Hide();

                Form9 f2 = new Form9();
                f2.Activate();
                f2.Show();
            }
        }