コード例 #1
0
        private void pictureBox5_Click(object sender, EventArgs e)
        {
            Control       ctls = this.Parent;
            AllCardCredit cl   = new AllCardCredit();

            ctls.Controls.Clear();
            ctls.Controls.Add(cl);
        }
コード例 #2
0
        private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e)
        {
            if (e.ColumnIndex == dataGridView1.Columns["col_view"].Index)
            {
                customer_id = Convert.ToInt32(dataGridView1.CurrentRow.Cells["col_customer_id"].Value);

                Control       ctls = this.Parent;
                AllCardCredit cl   = new AllCardCredit();
                ctls.Controls.Clear();
                ctls.Controls.Add(cl);
            }
        }