Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click 'My.Settings.TrialActive = True 'My.Settings.StartDate = Date.Today 'My.Settings.TrialUsed = False 'My.Settings.Save() MsgBox("Trail Extended Successfully") End Sub Private Sub checkdate() Dim dt As Date = My.Settings.StartDate Dim days As Double = (Date.Now.AddDays(-1).Subtract(dt)).TotalDays If days <= 0 Then My.Settings.TrialActive = True My.Settings.Save() 'MsgBox("This Is Trail Version") Else My.Settings.TrialActive = False My.Settings.TrialUsed = True My.Settings.Save() MsgBox("Your Registration hasbeen Expire!") End If
My.Settings.Reset() My.Settings.Save()
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)