Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 C# 构建自己的 mmc 管理单元,其中一项操作导致 ShowDialog。
问题是显示对话框不会阻止 mmc 窗口,所以我想使用 ShowDialog(IWin32Window) 但如何获取窗口句柄?
谢谢。
我找到了解决方案。
我需要使用SnapIn.Console.ShowDialog对话框本身的而不是 ShowDialog 函数。
SnapIn.Console.ShowDialog