Live Chat Icon For mobile
Live Chat Icon

How do I create a non-modal top level form that always stays on top of all the app’s windows (like the VS.Net find dialog)?

Platform: WinForms| Category: Form

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


[C#]
findReplaceDialog.Owner = this; // Your main form.
findReplaceDialog.TopLevel = false;
[VB.Net]
findReplaceDialog.Owner = Me ’ Your main form.
findReplaceDialog.TopLevel = False

Share with

Related FAQs

Couldn't find the FAQs you're looking for?

Please submit your question and answer.