none
Show() as Modal dialog RRS feed

  • Question

  • Hi,

    How to show the form as modal when i click on a button in ribbon.I want the form to be modal and not use showmodaldialog().

    Thursday, September 19, 2013 9:57 AM

Answers

  • Hi,
     
    Since you have a custom button in the ribbon, I assume you are developing office Add-in with VSTO.

    I’m not able to find a “showmodaldialog” method, do you mean the “ShowDialog” method?

    If so, currently, I’m not able to find another to show a modal dialog.

    For more information, please refer Displaying Modal and Modeless Windows Forms.


    <THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
    Thanks
    MSDN Community Support

    Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

    Friday, September 20, 2013 1:12 PM
    Moderator