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.
Přihlášení členové mohou přispívat, sledovat aktualizace a další. Jste tu noví? Zaregistrujte si bezplatný účet.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.