开发者

Getting IWin32Window interface of a MMC snap-in

开发者 https://www.devze.com 2023-03-25 05:59 出处:网络
I\'m building my own mmc snap-in using C#, and it one of the actions causes ShowDialog. The problem is that the show dialog doesn\'t block the mmc window, So i want to use ShowDialog(IWin32Window) bu

I'm building my own mmc snap-in using C#, and it one of the actions causes ShowDialog.

The problem is that the show dialog doesn't block the mmc window, So i want to use ShowDialog(IWin32Window) but how can I get the win开发者_开发知识库dow handle?

Thanks.


I've found the solution.

I needed to use the SnapIn.Console.ShowDialog and not the ShowDialog function of the dialog itself.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号