Click here to Skip to main content
14,084,843 members
Rate this:
 
Please Sign up or sign in to vote.
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.

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:

My.Settings.Reset()
My.Settings.Save()
Posted
Updated 2 days ago
v2
Comments
phil.o 2 days ago
   
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 2 days ago
   
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 2 days ago
   
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

Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

If you planned to call checkdate() from Button2_click, then you forgot.
   
Comments
Naqash Younis 3 days ago
   
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)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Cookies | Terms of Service
Web04 | 2.8.190518.1 | Last Updated 16 May 2019
Copyright © CodeProject, 1999-2019
All Rights Reserved.
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100