CLR: .Net / Mono / Boo / Otros CLR > VB .NET

 Controles De Usuario

(1/1)

senzao18:
Hola hice un control que hereda de la clase UserControl y me gustariasaber si alguiente tiene idea de como meterle licencia.....


--- Código: Text --- imports Systemimports System.Windows.Formsimports System.Drawingimports System.ComponentModel <LicenseProviderAttribute(GetType(LicFileLicenseProvider))> _Public Class LicensedControl : Inherits System.Windows.Forms.UserControl    Private license As License = Nothing     Public Sub New()        MyBase.New         license = LicenseManager.Validate(GetType(LicensedControl), Me)    End Sub     Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)        If license Is Nothing            license.Dispose()            license = Nothing        End If         MyBase.Dispose(disposing)    End Sub     Overrides Protected Sub OnPaint(e As PaintEventArgs)        ' Paint the Text property on the control         e.Graphics.DrawString(Me.Text, Font, New SolidBrush(ForeColor), ClientRectangle.x, ClientRectangle.y)    End SubEnd Class ' LicensedControl    
Ya intenté con el codigo anterior y cuando lo quiero añadir a un formulario me dice que no tengo licencia :S... y yo no quiero el cotrol asi de seguro jaja.....

Alguna idea de que me falta agregar Archivos.lic??? no se alguien sabe como se hace :S.....

Navegación

[0] Índice de Mensajes

Ir a la versión completa