I do not know how you created that form, but most forms usually have a 'parent' or 'owner' specification, which may be what you need to set. You can likely use the Application.MainFrameHWND property value for that (where 'Application' is the Inventor.Application object). When you set the Inventor window as the form's parent/owner, than usually helps with similar situations. If you were using an Inventor.DockableWindow, then you may need to change your 'dock' settings also, but that settings should not cause that kind of overlap on its own. There is also usually one or more specifications &/or methods associated with most forms &/or controls, for specifying / settings if it is something like 'top level' or 'top most', such as Form.TopLevel or Form.TopMost. Then of course there is how you show the form, which can determine if it is 'modal' or not' (Form.Show vs Form.ShowDialog). When using one of those Show or ShowDialog methods, it is usually asking for an optional IWin32Window type input parameter. I believe that you may have to create/use a custom 'wrapper' Class that implements that IWin32Window interface, which you can provide that property value from Inventor to it, so you specify that in that position.
Below is a custom Class block of code like that. I'm sure I either found this on this forum somewhere, or on StackOverflow somewhere, but do not recall the actual link to that source anymore.
<Serializable>
Public Class HwndWrapper
Implements IWin32Window
Private ReadOnly m_hWnd As IntPtr
Public Sub New(ByVal hWnd As IntPtr)
m_hWnd = hWnd
End Sub
Public Sub New(ByVal hWnd As Integer)
m_hWnd = CType(hWnd, IntPtr)
End Sub
Public ReadOnly Property Handle As IntPtr Implements IWin32Window.Handle
Get
Return m_hWnd
End Get
End Property
End Class
If this solved your problem, or answered your question, please click ACCEPT SOLUTION .
Or, if this helped you, please click (LIKE or KUDOS) 👍.
Wesley Crihfield

(Not an Autodesk Employee)