i want to restrict daily usage of my program.
for example, i want to restrict usage to 100 count daily.
and also want to check whether windows clocks roll back.
so code will be such like.

for i=0 to 100 
    if i > 100 then
    msgbox('daily usage exceed')
    else
    end if
next

any help much appreciate!

Not really sure about what you're asking, do you want the form and code to just stop if the limit is reached?

hello
if you can offer code that would you be perfect but
also snippit of code also much appreciate. thanks!

If you can answer my question I may be able to give you some code.

hello sorry for late reply!
first of all, merry xmas!
YES that's right i want form and code.
actually this is what i want . and i want to my form close or stop working when
limit reached.
thanks in advance!

Use a database or xml file or a text file to store the number and do the restriction.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.