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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
VulpesPosted Apr 11, 2013, 6:39 PM
Can you post the code which you're using to reopen the form at present.
Violeta PopaPosted Apr 11, 2013, 12:47 PM
VulpesPosted Apr 11, 2013, 10:20 AM
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?