2 Replies Latest reply on Mar 22, 2014 10:47 AM by Vincent Li

    Button of Usercontrol to call a "sub" of the SWAddin.vb? fail ....=.=!

    Vincent Li

      Dear Friends,


      I learn from the video from youtube, "SolidWorks API Tutorial 3 of 5- Creating Task Pane Controls" by Javelin, that we could create a userControl to be TaskPane of SW,


      However, when I use the button of the usercontrol to call a "sub" in the SWAddin.vb, then it fail.and below err information come out.



      "See the end of this message for details on invoking
      just-in-time (JIT) debugging instead of this dialog box.

      ************** Exception Text **************
      System.NotImplementedException: The method or operation is not implemented.
         at CustomSWAddin.usercontrol1.GetInMacro()
         at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
         at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
         at System.Windows.Forms.Control.WndProc(Message& m)
         at System.Windows.Forms.ButtonBase.WndProc(Message& m)
         at System.Windows.Forms.Button.WndProc(Message& m)
         at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)"


      code of uercontrol button.jpg


      Fail capture.jpg


      I am not familar with VB.NET programing, pls help to advise. and many many thanks.