Exemplo n.º 1
0
        private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            this.Hide();
            Form obj = new form2();

            obj.Show();
        }
Exemplo n.º 2
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (radioButton1.Checked)
     {
         Form obj1 = new insertmain();
         this.Hide();
         obj1.Show();
     }
     else if (radioButton2.Checked)
     {
         Form obj2 = new updatemain();
         this.Hide();
         obj2.Show();
     }
     else if (radioButton3.Checked)
     {
         Form obj3 = new deletemain();
         this.Hide();
         obj3.Show();
     }
     else if (radioButton4.Checked)
     {
         Form obj4 = new joinmain();
         this.Hide();
         obj4.Show();
     }
     else
     {
         DialogResult d;
         d = MessageBox.Show("Select one from above.", "WARNING", MessageBoxButtons.OK, MessageBoxIcon.Warning);
         if (d == DialogResult.OK)
         {
             Close();
             Form obj1 = new form2();
             obj1.Show();
         }
     }
 }