laptop and a wrench

Bug

ToolControl disappears if MsgBox MessageBox.Show is called at any time by another .NET Commandor

Zuletzt veröffentlicht: August 25, 2014 No Product Found
Bug-ID-Nummer NIM003925
EingereichtAugust 22, 2006
Zuletzt geändertJune 5, 2024
Gilt fürNo Product Found
Gefunden in Version9.1
ProgrammspracheVB.Net
StatusWill Not Be Addressed

Zusätzliche Informationen

No Public Explanation

Workaround

Workaround: -> NEEDS TO BE DOCUMENTED ************************************* This problem can be fixed with the following workaround and this workaround needs to be documented (maybe under IToolControl). The solution is to pass the application window handle to the call of MessageBox using Win32 API function directly. Try this (C# code): [ DllImport(“User32.dll”, EntryPoint=”MessageBox”, CharSet=CharSet.Auto)] public static extern int MsgBox(int hWnd, String text, String caption, uint type); Then make a call using the imported method passing the application window handle: MsgBox(m_app.hWnd, “Test box”, “”, 0); VB.NET <DllImport("User32.DLL", EntryPoint:="MessageBox", CharSet:=CharSet.Auto)> _ Public Shared Function MBox(ByVal hWnd As Integer, ByVal pCaption As String, ByVal pType As UInt32) As Integer End Function OR Declare Auto Function MBox Lib "user32.dll" _ Alias "MessageBox" (ByVal hWnd As Integer, ByVal txt As String, ByVal caption As String, ByVal Typ As Integer) As Integer Now call the function: MBox(Me.m_pApplication.hWnd, "Testing", "Caption", 0)

Schritte zur Reproduzierung

Bug-ID: NIM003925

Software:

  • No Product Found

Benachrichtigung erhalten, wenn sich der Status eines Bugs ändert

Esri Support App herunterladen

Weitere Informationen zu diesem Thema erkunden

Unterstützung durch ArcGIS-Experten anfordern

An den technischen Support wenden

Esri Support App herunterladen

Zu Download-Optionen wechseln