none
Excel goes in background when hiding windows forms from Excel Add-in RRS feed

  • Question

  • My Excel add-in is build in .net framework 4.0 using visual studio 2010 for office Excel 2007/2010.

    When I use this.Hide() method to close windows from used in excel add-in, excel goes in background. after finishing that process, excel comes to front.

    I have tried Microsoft.Office.Interop.Excel.Application.Visible=true, but does not work.

    Can anyone help me. 


    Monday, July 1, 2013 12:27 PM

Answers

  • Hi Saurabh0571,

    Thank you for posting in the MSDN Forum.

    When I use this.Hide() method to close windows from used in excel add-in

    Calling the Hide method won't close the windows form but change its visibility. This means the form is still there.

    You can try

    Hope it helps.

    Best regards,


    Quist Zhang [MSFT]
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Tuesday, July 2, 2013 7:26 AM
    Moderator