Eto Modal Dialog

I have just found that my Eto Modal dialog has a strange behaviour, it gets hidden
when Rhino is set to icon mode, and so freezes everything.
It clear that I need to set the parent window handle, but dunno how to.
Tried to use RhinoApp.MainWindowHandle() but unable to convert o a Eto.Control

where is the trick here ?

You can use RhinoEtoApp.MainWindow.

And where is the name space for that ?
unable to find it


Don’t worry found it.
Fine, now it works as expected