Beispiel #1
0
        private void button1_Click(object sender, EventArgs e)//Intha moonu line than oru form lendhu adutha form ku poguradhuku use pandrom
        {
            UpdateDetails f3 = new UpdateDetails();

            this.Visible = false; //Intha form a close pannum
            f3.ShowDialog();      //Adutha form a open pannum
        }
Beispiel #2
0
 private void Form3_KeyDown(object sender, KeyEventArgs e)//Shortcut keys
 {
     if ((e.KeyCode == Keys.Enter) && (button2.Enabled == true))
     {
         button2.PerformClick();
     }                                                            //Update info button work aagum
     if ((e.KeyCode == Keys.Escape) && (button2.Enabled == true)) //Marupidiyum athe form load aagum
     {
         UpdateDetails f3 = new UpdateDetails();
         this.Visible = false;
         f3.ShowDialog();
     }
     if ((e.KeyCode == Keys.Escape) && (button2.Enabled == false))
     {
         button3.PerformClick();
     }                                                                                        //Back button work aagum
 }