Microsoft Communities

Welcome to WindowsClient.net | Sign in | Join

Here are some frequently asked questions about Windows Forms and their answers.

Windows Forms FAQs

How do I create a non-modal top level form that always stays on top of all the app's windows?

For example the Find dialog in Visual Studio.

Make your main form the "Owner" of the form in question. Refer to Form.Owner in class reference for more information.

findReplaceDialog.Owner = this; // where 'this' is the main form
findReplaceDialog.TopLevel = false; 

Contributed from George Shepherd's Windows Forms FAQ



Page view counter