How can I make my licence works only one year? When I activated my program I add registry with current date. On each run I check if the registry exist. If registry exists I can use my application otherwise it prompt me to activate it .
I want to make that my licence works only one year.
I tried with
Public Sub Licence_Check()
Dim licenca As Date
Dim days As Integer
licenca = CDate(My.Computer.Registry.GetValue("HKEY_CURRENT_USER\tFull", "tFull", Nothing))
days = CInt(365 - (DateDiff(DateInterval.Day, licenca, Now)))
If days <= 0 Then
My.Computer.Registry.CurrentUser.DeleteValue("tFull")
pbInfo.Value = pbInfo.Maximum
gpbInfo.Text = "One year Licence OVER"
RbContinue.Enabled = False
End If
End Sub