Thursday, March 31, 2011

C# How do I link a child form to a parent?

I have a Windows form application that has a child form that pops up for data entry, when you hit 'Save' the child form closes. However if I don't close the child form and click on another program e.g. Outlook, OUtlook comes to the top but my child form remains above Outlook. Do I need to link it to the parent so they can't be seperated?

Thanks

From stackoverflow
  • The data entry dialog is being created with the TopMost property set to true.

    This will make it stay on op of all other windows who are not themselves set to top most (most of them). This is normally annoying to end users and very few dialogs actually merit its use.

0 comments:

Post a Comment