Hi,
i suggest the below steps.
-> create two variables in registry - Installed Date, Last opened date with different keys.
-> In main function,
* if the installed date is empty or null, write the cuurent date
* also write the last opened date to current date.
* If installed is not null or empty, check for 30 days with current date. if it less than 30 (user may change system date), then check with last opened date.
* if you found, the date cross 30 days, stop all functionality of the application and show the message to user.
you can refer
Read, write and delete from registry with C#[
^] for more information.
you can also refer
Make Your Application with Trial Version[
^]
hope it helps.