I am using standard VB.NET Addin and want to add some lines into SwAddin.vb file, so the Addin command could be stopped, if some criterien are not satisfied.
For example I have such lines in a function of SwAddin.vb...
If 3 <> 4 Then
MsgBox("Error! Run this addin again!")
' What should I write here to stop Addin and quit?
Update: I only want to quit the Addin command, not the SolidWorks.