I have an AddIn whose UI is a .NET Windows Form. The form's default behaviour is to sink below MicroStation's main window when the user clicks in any MicroStation window or dialog. If I call Form.TopMost(), the form sits permanently right on top of all Windows, including those of other applications. Neither behaviour is what a user expects.
I would like my AddIn's UI to appear on top relative to MicroStation's main window, just like built-in dialogs and toolboxes. Presumably I need the .NET version of MicroStation's Window, so I can set that as my AddIn's parent? Or, do I have to delve into the Win32 API and use the MicroStation window's native handle to achieve my goal?