private void pictureBox5_Click(object sender, EventArgs e) { Control ctls = this.Parent; AllCreditsLists vieret = new AllCreditsLists(); ctls.Controls.Clear(); ctls.Controls.Add(vieret); }
private void close_Click(object sender, EventArgs e) { Control ctls = this.Parent; AllCreditsLists cd = new AllCreditsLists(); ctls.Controls.Clear(); ctls.Controls.Add(cd); }
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; AllCreditsLists cl = new AllCreditsLists(); ctls.Controls.Clear(); ctls.Controls.Add(cl); } }