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. restrict project to run only 20 times

restrict project to run only 20 times

Scheduled Pinned Locked Moved Visual Basic
csharphelp
6 Posts 5 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.
  • V Offline
    V Offline
    vijaylumar
    wrote on last edited by
    #1

    hai friends i developed a software thru vb.net windows application now i will give it to clients for trial but it should run only for 20 times if the software is loaded into another system then it should not run if the count is 20 plz help me thanks in advance vijay

    R C 2 Replies Last reply
    0
    • V vijaylumar

      hai friends i developed a software thru vb.net windows application now i will give it to clients for trial but it should run only for 20 times if the software is loaded into another system then it should not run if the count is 20 plz help me thanks in advance vijay

      R Offline
      R Offline
      Rupesh Kumar Swami
      wrote on last edited by
      #2

      you can store the number of run in database. on project startup , check whether count is 20,if yes then close the application otherwise increment the number of run by 1. hope this helps

      Rupesh Kumar Swami Software Engineer, Integrated Solution, Bikaner (India) My Company

      V L 2 Replies Last reply
      0
      • R Rupesh Kumar Swami

        you can store the number of run in database. on project startup , check whether count is 20,if yes then close the application otherwise increment the number of run by 1. hope this helps

        Rupesh Kumar Swami Software Engineer, Integrated Solution, Bikaner (India) My Company

        V Offline
        V Offline
        vijaylumar
        wrote on last edited by
        #3

        hai rupesh is there any other option other than "storing count in database" thanks for u r reply vijay

        J 1 Reply Last reply
        0
        • V vijaylumar

          hai rupesh is there any other option other than "storing count in database" thanks for u r reply vijay

          J Offline
          J Offline
          jeipiyaku
          wrote on last edited by
          #4

          you can store it to a text file then rename it so that your clients cannot change the data in the text file e.g. you can encrypt the '20' so that the client cannot read it easily

          1 Reply Last reply
          0
          • V vijaylumar

            hai friends i developed a software thru vb.net windows application now i will give it to clients for trial but it should run only for 20 times if the software is loaded into another system then it should not run if the count is 20 plz help me thanks in advance vijay

            C Offline
            C Offline
            Christian Graus
            wrote on last edited by
            #5

            vijaylumar wrote:

            if the software is loaded into another system then it should not run

            That's not possible. Each machine will store the number of times run, if you write code to do it. If the user finds how you stored it, they can easily reset it. A new install can't tell if the same user has run it on another machine. The only way to do that, is to make the machine require the internet. Then you can give a license code for your demo, have it use a webservice to store how often it's been run and to check every time the user runs it. Of course, given it's a .NET program, users can decompile your code, remove the check and recompile it.

            Christian Graus Please read this if you don't understand the answer I've given you. If you're still stuck, ask me for more information.

            1 Reply Last reply
            0
            • R Rupesh Kumar Swami

              you can store the number of run in database. on project startup , check whether count is 20,if yes then close the application otherwise increment the number of run by 1. hope this helps

              Rupesh Kumar Swami Software Engineer, Integrated Solution, Bikaner (India) My Company

              L Offline
              L Offline
              LloydA111
              wrote on last edited by
              #6

              That would be a bit drastic, wouldnt it? A database just for one number??

              Lloyd J. Atkinson "Logic will get you from A to B, but imagination will take you everywhere" - ALbert Einstein I look at Microsoft, and turn to my poster on the wall saying: "Bang head here in case of stress".

              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