Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. VB.NET Trial Version

VB.NET Trial Version

Scheduled Pinned Locked Moved Visual Basic
csharpannouncement
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Socheat Net
    wrote on last edited by
    #1

    I have 1 application and I want to count it one time a day by using Proces Control, If user have run it for 30days the application not possible to use and Process Control is maximame Please anyone know give a code ................

    L 1 Reply Last reply
    0
    • S Socheat Net

      I have 1 application and I want to count it one time a day by using Proces Control, If user have run it for 30days the application not possible to use and Process Control is maximame Please anyone know give a code ................

      L Offline
      L Offline
      Leeland
      wrote on last edited by
      #2

      An easy way would be to write an installation date to the registry (or a hidden file somewhere on the hard drive) and then do a datediff function. If it returns < 30 then run regular code, if not, go to a form that shows how they can register. If you're going to do this tho, you should do some type of encryption of the date so your general user isn't changing the date every 30 days.

      S 1 Reply Last reply
      0
      • L Leeland

        An easy way would be to write an installation date to the registry (or a hidden file somewhere on the hard drive) and then do a datediff function. If it returns < 30 then run regular code, if not, go to a form that shows how they can register. If you're going to do this tho, you should do some type of encryption of the date so your general user isn't changing the date every 30 days.

        S Offline
        S Offline
        Socheat Net
        wrote on last edited by
        #3

        Can u give one example? ................

        S 1 Reply Last reply
        0
        • S Socheat Net

          Can u give one example? ................

          S Offline
          S Offline
          Steve Pullan
          wrote on last edited by
          #4

          He just did. ...Steve 1. quod erat demonstrandum 2. "Give a man a fish and you've fed him for a day. Teach him how to fish and you've fed him for life." I read that somewhere once :-)

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups