PDA

View Full Version : آموزش: نحوه ساخت کد فعالسازی برای فایل های DLL (Dynamic Link Library)



ROSTAM2
دوشنبه 17 مهر 1402, 08:23 صبح
در این آموزش یک روش ایجاد کد فعالسازی برای فایل dll در پروژه Class Library برای استفاده در یک پروژه Windows Forms توضیح داده شده....

https://aparat.com/v/yR96i (https://aparat.com/v/yR96i)

155001 (https://aparat.com/v/yR96i)


If CheckForActivate = False AndAlso Not ResStr = ID.ActivateCode Then
ShowActivateDialog: With ActivateDialog
.KeyCode = ID.KeyCode
.ActivateCodeValue = ID.ActivateCode
If .ShowDialog() = Windows.Forms.DialogResult.OK Then
If .ActivateCode = ID.ActivateCode Then
IO.File.WriteAllText(ActivateDocument, ID.UnlockString(.ActivateCode))
MsgBox("Activate Document Created Successfully.", MsgBoxStyle.Information)
End If
End If
End With
End If