expiration time window form c #

0

Good I know that they are going to close the question to me or it is going to be terrible: I would like to ask you a question, I do not know if you can place in window form in c # to the program an expiring time that is to say. If I create my system and I want it to expire after 1 month, it will not be possible to use it but it has to indicate the time it needs to expire.

or something similar as shown by the avast program

    
asked by PieroDev 07.04.2017 в 01:22
source

2 answers

0

I recommend you look a little before posting, some questions have already been answered on the web.

Here are some links that will give you more context about what you are looking for in your application.

private void Form1_Load(object sender, EventArgs e)
        {

            if(DateTime.Now.ToString("dd")=="04" && DateTime.Now.ToString("MM")=="08" && DateTime.Now.ToString("yyyy")==("2016"))
            {

                Application.Exit();
            }

        }
  • Create trial version
  • Application trial maker
  • Create secure trial version
  • Implementing 30 days trial period in c #
  • answered by 07.04.2017 в 01:33
    0

    -Primero that nothing you must save in a txt or somewhere the date in which the program is run for the first time -In the file program.cs before launching the first form you should read the file and fill it with the current date resulting in the days that have elapsed since the program was first run. -If you still have time to use you can pass the result of days using the form's constructor method and fill your ProgressBar. In case it has expired -You must generate a Form to which redirections when the time that you decided has passed -This form should only have one button to close the application

    I hope it serves you and here I leave some links that will be of help

    Create and read txt files

    Calculated dates

    Passing parameters by constructor method

    I hope it's helpful

        
    answered by 07.04.2017 в 01:37