5 Replies Latest reply on Apr 14, 2017 4:38 AM by Patrik MacHalec

    VB.NET Addin: How to define PMPHandler for multi buttons?

    Ross John

      Hi,

       

      I have to say, this is a very beginners question.

       

      I am using the standard VB.NET Addin templete and have added some buttons into it using the command PropertyManagerPageButton. Lets say I have  button1, button2 and button3 already. Then I want to assign different tasks for those three buttons accordingly, when they are clicked.

       

      In the PMPHandler.vb I see the following templete codes...

      Sub OnButtonPress(ByVal id As Integer) Implements PropertyManagerPage2Handler9.OnButtonPress

      End Sub

       

      Based on my knowedge to VB, I have tried on my own to rewrite the above templete for my purpose...

      Sub OnButton1Press(ByVal id As Integer) Implements PropertyManagerPage2Handler9.OnButtonPress

      End Sub

      Sub OnButton2Press(ByVal id As Integer) Implements PropertyManagerPage2Handler9.OnButtonPress

      End Sub

      Sub OnButton3Press(ByVal id As Integer) Implements PropertyManagerPage2Handler9.OnButtonPress

      End Sub

      But get the error message as shows:

      Unbenannt00000000.png

       

      So what should I do?

       

      Thanks!