|
 Answer
You put the declaration into not appropriate place of your code.
Please put the assembly activation to some start procedure of your
main form. Something like the following:
#Region " Windows Form Designer generated code "
Public Sub New()
MyBase.New()
'This call is required by the Windows Form Designer.
InitializeComponent()
'Add any initialization after the InitializeComponent() call
Dim Authorize As New ActivateAssembly
Authorize.LicenseeName = "[Your Name]"
Authorize.CompanyName = "[Your Company Name]"
Authorize.Activate()
End Sub
|