*Experts* Merrion Posted February 27, 2003 *Experts* Posted February 27, 2003 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 Quote Printer Monitor for .NET? - see Merrion Computing Ltd for details
*Gurus* divil Posted February 27, 2003 *Gurus* Posted February 27, 2003 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. Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.