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. Making Trail Software

Making Trail Software

Scheduled Pinned Locked Moved Visual Basic
6 Posts 3 Posters 1 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.
  • P Offline
    P Offline
    pathak78
    wrote on last edited by
    #1

    Hi, I want to make a software for trail use of 30 days or 15 days etc. Please give me an idea. Thanks,

    M 1 Reply Last reply
    0
    • P pathak78

      Hi, I want to make a software for trail use of 30 days or 15 days etc. Please give me an idea. Thanks,

      M Offline
      M Offline
      MatrixCoder
      wrote on last edited by
      #2

      They way I would do it is, after you install your program, store the date that your program was installed for the first time, and use DateTime function to add the days since ran. Then, if your program has been installed for 30 days, set a Boolean value that locks the interface (or however you want to discontinue access to your program).

      L P 2 Replies Last reply
      0
      • M MatrixCoder

        They way I would do it is, after you install your program, store the date that your program was installed for the first time, and use DateTime function to add the days since ran. Then, if your program has been installed for 30 days, set a Boolean value that locks the interface (or however you want to discontinue access to your program).

        L Offline
        L Offline
        Leah_Garrett
        wrote on last edited by
        #3

        Where would you store the values? Usual user settings locations would be easy enough to find eg: isolated storage. A key in the registry? You could create an algorithm for generating a key in the registry and just store the date with no other identifying informaiton. And then just leave the key there until a full version was installed.

        M 1 Reply Last reply
        0
        • L Leah_Garrett

          Where would you store the values? Usual user settings locations would be easy enough to find eg: isolated storage. A key in the registry? You could create an algorithm for generating a key in the registry and just store the date with no other identifying informaiton. And then just leave the key there until a full version was installed.

          M Offline
          M Offline
          MatrixCoder
          wrote on last edited by
          #4

          Leah_Garrett wrote:

          Where would you store the values?

          In the program. Every time it starts up, it checks to see if it has been 30 days since it's been installed.

          L 1 Reply Last reply
          0
          • M MatrixCoder

            Leah_Garrett wrote:

            Where would you store the values?

            In the program. Every time it starts up, it checks to see if it has been 30 days since it's been installed.

            L Offline
            L Offline
            Leah_Garrett
            wrote on last edited by
            #5

            MatrixCoder wrote:

            In the program.

            You mean as part of the binary? Have you got code samples or references?

            1 Reply Last reply
            0
            • M MatrixCoder

              They way I would do it is, after you install your program, store the date that your program was installed for the first time, and use DateTime function to add the days since ran. Then, if your program has been installed for 30 days, set a Boolean value that locks the interface (or however you want to discontinue access to your program).

              P Offline
              P Offline
              pathak78
              wrote on last edited by
              #6

              Hi, I have already tries this but there is one loose point. If a user not changed his system date and runs our software at the same date in which date it installed, No way to increase run days. Think about it and give me any more idea about this. Thanks for your reply.

              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