Exemplo n.º 1
0
        private void dataTransaksiToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Form2 f2 = new Form2();

            f2.ShowDialog();
            f2.Focus();
        }
Exemplo n.º 2
0
 private void button1_Click_1(object sender, EventArgs e)
 {
     if (forma2 == null)
     {
         forma2 = new Form2();
         forma2.Show();
         forma2.FormClosed += instanceHasBeenClosed;
     }
     else
     {
         forma2.Focus();
     }
 }
Exemplo n.º 3
0
        private void button2_Click(object sender, EventArgs e)
        {
            if (txtWaktu.Text == "" || txtWaktu.Text == "" || comboBox1.Text == "")
            {
                MessageBox.Show("Pengisian belum lengkap!", "Validasi Data");
            }
            else
            {
                Form2 f2 = new Form2();
                f2.ShowDialog();
                f2.Focus();

                teks = textBox6.Text;
            }
        }