Search code examples
c#visual-studiovsixvisual-studio-package

Call visual studio modal dialog


I'm developing some visual studio package projects(vsix) and I need to show a modal dialog box preventing clicks behind it. Something like visual studio About dialog box.

enter image description here

Clicks behind this dialog are denied while it is being shown.

I did try it using Forms.Form.showDialog but it works only in the vsix context (It prevents clicks in forms of itself and not in visual studio window).

Can someone help me?

Thanks


Solution

  • You should use DialogWindow as recommended in the VS Design guides