private void dataGridView1_Click(object sender, EventArgs e) { FormGPuKutiji f1 = new FormGPuKutiji(int.Parse(dataGridView1.CurrentRow.Cells["id"].Value.ToString())); this.groupBox2.Controls.Clear(); this.groupBox2.Controls.Add(f1.GetGroupBox()); f1.GetGroupBox().Dock = DockStyle.Top; f1.GetGroupBox().Show(); }
private void gPUKutijiToolStripMenuItem_Click(object sender, EventArgs e) { FormGPuKutiji f1 = new FormGPuKutiji(); f1.ShowDialog(); }