Click here to Skip to main content
15,897,371 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
accidentally i set My.Setting in Visual Studio App Setting now i want to remove but failed i also delete it from setting section but still my changes in software not showing.i applied this setting..please help me out.

VB
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


What I have tried:

VB
My.Settings.Reset()
My.Settings.Save()
Posted
Updated 16-May-19 2:21am
v2
Comments
phil.o 16-May-19 8:24am    
Since settings are stored in text files, there is a great chance that anyone who wants to bypass your licensing process can do it very easily.
Dave Kreskowiak 16-May-19 9:31am    
It's spelled "Trial", not "Trail".

Also, you're saving all of your licensing information in CLEAR TEXT, making it ridiculously easy for anyone to bypass your licensing.
Naqash Younis 17-May-19 0:18am    
where text file is Stored ? now i dont want to implement i just want to get it out.because still im making the software but just because of setting save not any even single changes update on my vb.net application

1 solution

If you planned to call checkdate() from Button2_click, then you forgot.
 
Share this answer
 
Comments
Naqash Younis 16-May-19 1:52am    
i removed all code of checkupdate and trail version etc also remove it from visual studio project app setting i just want to get it out form this bull sh*t problem

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900