locked
debugging OleMenuCommand.BeforeQueryStatus event handler RRS feed

  • Question

  • Hi,

    I have added a menubar command(new root menu at the same level as File, Edit menu items) and added beforeQueryStatus event to conditonally show the menubar. But the menubar is not showing on expected condition. Sometime it shows properly other times it is just invisible.

    For troubleshottingm If i do file tracing from my BeforeQueryStatus handler, it always indicates that I am setting menu.Visible = true; but still the menu doesn't show up.

    Is there a way I can debug/troubleshoot, why VS is not everytime showing the Menu; eventhough I am setting visibility to true.

    Regards


    singhhome
    Monday, October 4, 2010 6:44 PM

Answers

  • Fixed it. It was a code defect in my querystatus method.

    Regards


    singhhome
    • Marked as answer by singhhome Monday, October 4, 2010 6:59 PM
    Monday, October 4, 2010 6:59 PM