The LicenseProvider (and subsequent license classes) are applied as
attributes to classes. Their chief role is to instantiate when the class
they protect has been created and try to determine if a file is there (the
license file) and then allow the license provider class (that you write) to
open it, use whatever is inside to validate the running mode somehow and
then either throw a license exception to stop execution or to allow the
class to be created.
There is really no reason why this cannot be used to license an application
instead of a class or component.
It took me quite a while to get my head around the LicenseProvider class but
once you get a hang of how it works it is really basic.
I am working on a complete licensing system right now so I don't have a
complete set of code to send you but find yourself a good example and dig
into it. I suggest the CD that comes with Programming with VisualBasic (ISBN
0-7356-2059-8). There is an EXCELLENT example of hoe to use the
LicenseProvider. I had found several examples on the web and none of them
worked well. This one was good the first time and helped my understanding in
a MAJOR way.
"ML" <ml@schoonersolutions.com> wrote in message
news:#1*************@tk2msftngp13.phx.gbl...
I guess I am missing how it can be used that way and how it relates to
activation and registration tied to a specific PC. Are there any samples
on using it this way?
"Ray Cassick (Home)" <rc************@enterprocity.com> wrote in message
news:O4*************@TK2MSFTNGP11.phx.gbl... You can use it the same way.
"ML" <ml@schoonersolutions.com> wrote in message
news:Ol**************@TK2MSFTNGP12.phx.gbl... That is targeted at control licenses for use in VS is it not?
I am looking for something to handle the actual activation and
licensing on an end user application.
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:%2***************@tk2msftngp13.phx.gbl...
> * "ML" <ml@schoonersolutions.com> scripsit:
> > Does anyone have any info on sample code for handling
activation/licensing
> > for a vb.net app?
>
>
<URL:http://msdn.microsoft.com/library/en...nlicensingcomp onentscontrols.asp>
> <URL:http://windowsforms.net/articles/Licensing.aspx>
>
> --
> Herfried K. Wagner [MVP]
> <URL:http://dotnet.mvps.org/>