private void button2_Click(object sender, EventArgs e)
 {
     try
     {
         frmsalesrpt fr = new frmsalesrpt();
         fr.ShowDialog();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
Beispiel #2
0
 private void button4_Click(object sender, EventArgs e)
 {
     try
     {
         frmsalesrpt frm = new frmsalesrpt();
         frm.WindowState = FormWindowState.Maximized;//openning of mdi form in a maximised state
         frm.ShowDialog();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }