I'm not sure that this is 100% secure
, but hey...
Code Block
private void Form1_Load(object sender, EventArgs e)
{
int year = Convert.ToInt32(DateTime.Now.Year);
int day = Convert.ToInt32(DateTime.Now.Day);
int month = Convert.ToInt32(DateTime.Now.Month);
if(year >= 2007 && day >= 28 && month >= 10)
{
MessageBox.Show("Sorry, you are past the trial version deadline!");
Application.Exit();
}
}
Thanks,
paoloTheCool