I'm trying to make this simple program in visual studio 2008.

It's for a pocket pc

It's with a randomizer, where you press a button, and it'll pick a random sentence.

Then made a variable with 10 random sentences, that's all good and working BUT i would like you to be able to only press the button once a day, and then lock it, and then it will ofcourse get unlocked the next day.

For example you press button at 4 pm, then it'll get locked until 12 @ midnight, then unlocks, and process restarts.

So you will have sentence a day, and no more.

If you have any idea about this, i would appreciate some help, havent been able to find anything about it unfortunately.