laptop and a wrench

漏洞

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

上次发布: August 25, 2014 No Product Found
漏洞 ID 编号 NIM003925
已提交August 22, 2006
上次修改时间June 5, 2024
适用范围No Product Found
找到的版本9.1
编程语言VB.Net
状态Will Not Be Addressed

附加信息

No Public Explanation

解决办法

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)

重现步骤

漏洞 ID: NIM003925

软件:

  • No Product Found

当漏洞状态发生变化时获得通知

下载 Esri 支持应用程序

发现关于本主题的更多内容

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项