right click mouse button in add-in

activ8activ8 Member Posts: 25
edited 2010-10-02 in NAV Three Tier
Hello,

Is it possible to overrule the right click menu on a factbox if you use an add-in ?
I made a winforms app and added a contextmenu.

But when i add the add-in , the right click menu from the factbox is shown ("Part- Remove - customize")
and not the menu i created with the contextmenu in .net.

Any sample .net c# code would be nice :-)

Thx,

Comments

  • beranberan Member, Microsoft Employee Posts: 80
    Have you tried to add an action on the part?
    Eric Beran
    Software Design Engineer II
    Dynamics NAV Office 365
    Microsoft

    This posting is provided "AS IS" with no warranties, and confers no rights.
  • beranberan Member, Microsoft Employee Posts: 80
    The action then need access to a .Net object that can communicate with the WinForms add-in.
    Eric Beran
    Software Design Engineer II
    Dynamics NAV Office 365
    Microsoft

    This posting is provided "AS IS" with no warranties, and confers no rights.
  • activ8activ8 Member Posts: 25
    The menu-items I want to add don't need any interaction with NAV.
    They can be executed directly in the add-in without using actions in NAV.
  • activ8activ8 Member Posts: 25
    I solved by assigning the controltextmenu to a panel.
    Thx anyway :-)
  • henrikmhenrikm Member, Microsoft Employee Posts: 66
    Hi,

    Did you find what you were looking for regarding the context menu? As you have found out we set up a default context menu.

    Action: You can add an action to the page on which the Add-in resides. This action will display in the lightning menu.

    /henrik
    “This posting is provided "AS IS" with no warranties, and confers no rights.”

    Henrik Metzger, Software Development Engineer, Dynamics NAV
    MSFT
Sign In or Register to comment.