Public Class Win32HWNDWrapper Implements System.Windows.Forms.IWin32Window Private _hwnd As System.IntPtr Public ReadOnly Property Handle As System.IntPtr Implements System.Windows.Forms.IWin32Window.Handle Get Return _hwnd End Get End Property Public Sub New(ByVal Handle As System.IntPtr) _hwnd = Handle End Sub End Class
MyForm.Show(New Win32HWNDWrapper(m_application.hWnd))
System.Windows.Forms.Form has members ShowDialog and Show which take IWin32Window as an argument.Google on "hWnd IWin32Window".
Or another option is to set the FORM properties to TopMost = TrueObviously the reults two methods are a tad different.
When you display your form/dialog you need to tell Windows that the ArcMap window is the parent, i.e. IApplication.hWnd.
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.