Gets the Windows Handle (hWnd) of the ArcGIS Desktop application that is currently running. Note: If you need a Windows Handle for a custom application use System.Runtime.InteropServices.Marshal.GetHINSTANCE instead.
[C#]
//<-- Snippet Start -->
// DESCRIPTION:
// Gets the Windows Handle (hWnd) of the ArcGIS Desktop application that is currently
// running. Note: If you need a Windows Handle for a custom application use
// System.Runtime.InteropServices.Marshal.GetHINSTANCE instead.
int hWnd = m_application.hWnd;
//<-- Snippet End -->
[Visual Basic .NET]
'<-- Snippet Start -->
' DESCRIPTION:
' Gets the Windows Handle (hWnd) of the ArcGIS Desktop application that is currently
' running. Note: If you need a Windows Handle for a custom application use
' System.Runtime.InteropServices.Marshal.GetHINSTANCE instead.
Dim hWnd As Integer = m_application.hWnd
'<-- Snippet End -->