Windows Develop Bookmark and Share   
 index > Windows Forms General > how to show a modal window in a form that is included in a MDI Form.
 

how to show a modal window in a form that is included in a MDI Form.

HI there,

I'd like to find out a way to show a modal window of a form that is included in a MDI Form, but what makes this case special, is that this modal form have to affect only to his parent form, and not anyone more in the MDI Form. I mean , for example I've got my MDI form and in there I've got two forms. Once I've open a modal dialog in one of the two forms, I'd like to be able to work with the second form as a normal window without having to wait that the modal in the first one is closed by user.

Hope that this makes sense, and anyone can help me.

Thanks in advance to everyone.

Cheers

Xiao Lin  Wednesday, July 18, 2007 10:21 AM
I guess you used ShowDialog(); but instead of it you should use form1.Show(); method to solve your problem otherwise you are going to have to wait the other form closing.
atarikg  Wednesday, July 18, 2007 11:04 AM

My problem is that i want to used a modal dialog for one form, and be able to work normallyin the second form of the MDI as well. using form1.Show() doesn't help me, at least in the way i want it to work.

Xiao Lin  Wednesday, July 18, 2007 11:37 AM

You can use google to search for other answers

Custom Search

More Threads

• Achieving high refresh rate on C# winform application
• Custom control redraw issue
• Propertygrid Keypress events
• Doubt in Close and Opean a Form..
• getting an error
• How to decrease the size of the application?
• Stopping screen flicker.
• Get Unique ID from Computer
• Setting Datasource property on datagridview freezes UI
• Smart tag support