Appel form c#
comment appeler des froms a partir d'un boutton
4 Answers
Know the answer? Post it. Somebody with the same question will find it here.
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 attend4days leftRegister
Doha Msg11 reputationPosted Nov 29, 2010, 12:14 AM EST
Answer: in the button click event, write a code similar to
MyForm frm = new MyForm();
frm.Show(); // or frm.ShowDialog();
Where MyForm is the Class defining your form. If you use .Net 4.0 you can instantiate the form like this : var frm = new MyForm();
Suthish NairRank #92 · 22.8K reputationPosted Nov 29, 2010, 6:42 AM EST
Sam HobbsRank #108 · 20.5K reputationPosted Nov 29, 2010, 10:36 PM EST
samia mezzi7 reputationPosted Dec 13, 2010, 12:39 AM EST