I have more forms stored in a table. I want
choose some of them and start to run. But I do not know run a form as parameter
.
Can you help me?
Thanks.
Best regards
Jaroslav Sidlo
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Puran KaushalRank #2,456 · 573 reputationPosted Jun 5, 2009, 8:08 AM EDT
Jaroslav Sidlo5 reputationPosted Jun 7, 2009, 11:38 PM EDT
Thanks.
ret = (string)dgvsomast.CurrentRow.Cells["SONO"].Value;
......
......
ZO_udrzba mod = new ZO_udrzba(aco, ret);
mod.ShowDialog();
Kirtan PatelRank #292 · 8.6K reputationPosted Jun 8, 2009, 12:32 AM EDT
private void button1_Click(object sender, EventArgs e) { string Formname = "WindowsApplication1."+dataGridView1.CurrentRow.Cells[0].Value.ToString(); System.Reflection.Assembly asm = System.Reflection.Assembly.GetExecutingAssembly(); Form frm = (Form)asm.CreateInstance(Formname); frm.ShowDialog(); }Jaroslav Sidlo5 reputationPosted Jun 8, 2009, 1:37 AM EDT
By