Hello friends
i am working in VS2010 C# Windows application,
i have created a application
in which some what like security application
i have added a form1 in which i have included a button ie... button1 and a textbox ie... textbox1
in button1 i have added a code like
private void button1_Click(object sender,EventArgs e)
{
if (textbox1.text=="1234567")
{
Form f= new Form2();
this.Hide();
f.Show();
}
else
{
messagebox.show("Enter the Correct Licence key");
}
but what i want is this license key(1234567) should work only for one year after one year it should stop working(stop working means it should not display the form2)
what can i do in order to do this
please help me