예제 #1
0
        private void button4_Click(object sender, EventArgs e)
        {
            NewCompany BA = new NewCompany();

            this.Controls.Add(BA);
            BA.Location = new Point(200, 50);
            BA.Visible  = true;
            BA.BringToFront();
        }
예제 #2
0
        private void dgvCompanylist_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            if (dgvCompanylist.SelectedCells.Count > 0)
            {
                //  int i = dgvCompanylist.SelectedCells[0].RowIndex;

                NewCompany BA = new NewCompany();
                this.Controls.Add(BA);
                BA.Location = new Point(200, 50);
                BA.Visible  = true;
                BA.BringToFront();
            }
        }