Jump to content
Xtreme .Net Talk

LicenseDispenser - How to get implement design-time license?


Recommended Posts

  • *Experts*
Posted

I have a component that I wish to protect with a design-time license. i.e. when the component is loaded in a .Net IDE it requires a license but apps compiled and distributed with it do not.

 

I am using the built in license providor: LicFileLicenseProvider - how do I tell it to only require a license for design time use?

 

e.g.

<LicenseProvider(GetType(LicFileLicenseProvider))> _
Public Class PrintEngine
   Inherits Component
   
   ' Creates a new, null license.
   Private license As License = Nothing    
   
   Public Sub New()        
   
       ' Adds Validate to the control's constructor.
       license = LicenseManager.Validate(GetType(PrintEngine), Me)

   End Sub
   
   Public Overloads Overrides Sub Dispose()
       If Not (license Is Nothing) Then
           license.Dispose()
           license = Nothing
       End If
   End Sub    
   
End Class

Printer Monitor for .NET? - see Merrion Computing Ltd for details
  • *Gurus*
Posted

The license should be compiled in to the application and this shouldn't be a problem, as far as I remember.

 

http://www.gotdotnet.com/team/windowsforms/Licensing.aspx

 

That URL is pretty much the bible on .NET licensing, if you haven't been there already.

MVP, Visual Developer - .NET

 

Now you see why evil will always triumph - because good is dumb.

 

My free .NET Windows Forms Controls and Articles

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...