Example #1
0
 //print
 private void button4_Click(object sender, EventArgs e)
 {
     try
     {
         Print_Employee_Info pei = new Print_Employee_Info(textBox1.Text);
         pei.Show();
     }
     catch
     {
     }
 }
Example #2
0
 private void viewToolStripMenuItem_Click(object sender, EventArgs e)
 {
     try
     {
         string x = dataGridView1.SelectedRows[0].Cells[0].Value.ToString();
         Print_Employee_Info pei = new Print_Employee_Info(x);
         pei.Show();
     }
     catch
     {
     }
 }