Rhino 7 and PlugIn close

i’m developing a plug-in with Rhino 7 and VB.
All seems to be fine but when i try to minimize Rhino, the plug-in receive a Close event and it stops. Is this the normal behaviour?
If yes, how can i avoid it? My plug-in needs to stay up forever!
At the moment i use Rhino.UI.Dialogs.ShowSemiModal to display the main window: it is deprecated but i’ve not found an alternative method. I’ve tried also ShowDialog() but this way i’m not able to interact with Rhino at all.

is the code here: [rhino-developer-samples/rhinocommon/cs/SampleCsWinForms/Commands/SampleCsModelessFormCommand.cs at 6 · mcneel/rhino-developer-samples · GitHub]

a possible solution?


It seems to work!