Hello Ajay,
For that you need to add the Algorithm in your code to specify the trail period of the software application and remind the users to activate the application by register the product.
It will ask for product key after the specific time given by you.....
Open the below link with the complete information with the code.....
http://www.c-sharpcorner.com/uploadfile/tanmayit08/make-your-application-with-trial-version/