TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Violeta Popa
NA
137
163.7k
cannot use ShowDialog()
Apr 11 2013 8:08 AM
Hello..I have a form, named "modificare" which i want to be shown in a panel, so I used the Parent property.If i use Show() is ok, but using ShowDialog() generates an error: Form that is not a top-level form cannot be displayed as a modal dialog box. Remove the form from any parent form before calling showDialog. But i need ShowDialog :( how can i fix this pb? thanks.
modificare.TopLevel = false;
modificare.Parent = panel3;
panel3.Controls.Add(modificare);
modificare.ShowDialog();
Reply
Answers (
3
)
send sms via web application
Simple calculator (Windows Forms)