How to Show My Form From MyPlugIn (WinForms)

I create some form using WinForms and C# (.net48)

and I put some button in Panel , and in it’s Click Event, I coded like this.

        if (f.ShowDialog() == System.Windows.Forms.DialogResult.OK)

But this form often hide behind Rhinoceros Main Window, so that I can’t operate anything on it.

Is it possible to show user defined “Form” in a Rhinoceros PlugIn?
How can I do it ?

From memory, you need to set the owner (or parent) of the form to be Rhino. You may also want to set the form to be topmost in winforms,

1 Like

Thanks, I got it.