modificare.TopLevel = false;
modificare.Parent = panel3;
panel3.Controls.Add(modificare);
modificare.ShowDialog();
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
VulpesRank #55 · 29.2K reputationPosted Apr 11, 2013, 6:20 AM EDT
A modal form needs to be top level so that all other forms in the application can effectively be disabled until the modal form is closed.
If another form were allowed to be the modal form's parent, then disabling the parent would disable all its controls including the modal form.
Is there some particular reason why you need it to be shown in the panel?
Violeta Popa132 reputationPosted Apr 11, 2013, 8:47 AM EDT
VulpesRank #55 · 29.2K reputationPosted Apr 11, 2013, 2:39 PM EDT
Can you post the code which you're using to reopen the form at present.