Simple Time Sheet:

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jrtox
    New Member
    • Sep 2007
    • 89

    Simple Time Sheet:

    Hello guys,
    I made a simple Computerized Time Sheet in our Office and its not 100% working because i used the system clock. the user can edit/change the system time and date if he/she knows that he/she is late.

    Is there any ways to Disabled the System clock in VB6.?


    please help me with this one.
  • Killer42
    Recognized Expert Expert
    • Oct 2006
    • 8429

    #2
    Originally posted by jrtox
    Is there any way to Disabled the System clock in VB6?
    To put it simply, "no". I believe it is possible, through Group Policies, to prevent the user from setting the system clock. But that's a major topic, to be addressed by network administrators, not something you'd throw in to stop people fiddling the time in your program.

    Perhaps you could take a different approach. For instance, create a little program which starts up when Windows starts. It keeps checking the current time, and if the time goes backward, it sounds the alert.

    Comment

    • Killer42
      Recognized Expert Expert
      • Oct 2006
      • 8429

      #3
      Here's a little sample to show the sort of thing I mean. Use it carefully, it's REALLY annoying.
      Attached Files

      Comment

      • jrtox
        New Member
        • Sep 2007
        • 89

        #4
        Originally posted by Killer42
        Here's a little sample to show the sort of thing I mean. Use it carefully, it's REALLY annoying.

        Hello,

        Thanks for your Suggestion and also for your sample program, its a big help.
        it gives an idea to me now.

        Regards
        Ervin

        Comment

        • Killer42
          Recognized Expert Expert
          • Oct 2006
          • 8429

          #5
          Originally posted by jrtox
          Thanks for your Suggestion and also for your sample program, its a big help.
          it gives an idea to me now.
          Excellent!

          The program isn't very useful in itself, of course. I just hoped it would help produce some ideas so you could move forward.

          Comment

          • jrtox
            New Member
            • Sep 2007
            • 89

            #6
            Originally posted by Killer42
            Excellent!

            The program isn't very useful in itself, of course. I just hoped it would help produce some ideas so you could move forward.
            ]


            Maybe it isnt very useful because its only a sample but still, it gives to me an idea to go beyond.

            anyway, how to call the system clock inVB6 coding?

            Comment

            • Killer42
              Recognized Expert Expert
              • Oct 2006
              • 8429

              #7
              Originally posted by jrtox
              ... anyway, how to call the system clock inVB6 coding?
              Um... what do you mean by "call the system clock"? If you want the current date/time, use the Now() function (you can leave off the parentheses if you like). To just get the seconds since midnight, use Timer().

              Comment

              • jrtox
                New Member
                • Sep 2007
                • 89

                #8
                Originally posted by Killer42
                Um... what do you mean by "call the system clock"? If you want the current date/time, use the Now() function (you can leave off the parentheses if you like). To just get the seconds since midnight, use Timer().

                Nope its not what i mean,

                By calling the system calculator we do used the coding like

                Call Shell("C:\WINDO WS\system32\cal c.exe", vbMaximizedFocu s)

                Now, i tryingto find the exe for the system clock.
                maybe you know

                Regards
                Ervin

                Comment

                • Killer42
                  Recognized Expert Expert
                  • Oct 2006
                  • 8429

                  #9
                  Originally posted by jrtox
                  ... By calling the system calculator we do used the coding like

                  Call Shell("C:\WINDO WS\system32\cal c.exe", vbMaximizedFocu s)

                  Now, i tryingto find the exe for the system clock.
                  Um... you mean the time/date display from the notification area of the task bar? I have no idea whether there is one. Perhaps it's part of Systray.exe. I doubt you can call it.

                  Why do you want to?

                  Comment

                  • jrtox
                    New Member
                    • Sep 2007
                    • 89

                    #10
                    Originally posted by Killer42
                    Um... you mean the time/date display from the notification area of the task bar? I have no idea whether there is one. Perhaps it's part of Systray.exe. I doubt you can call it.

                    Why do you want to?

                    Yes, i can coz i call it before.
                    i just stop making programs for 4 years coz i work in other field, not in programming.
                    Anyway, thanks for your answer.

                    Regards
                    Ervin

                    Comment

                    • Killer42
                      Recognized Expert Expert
                      • Oct 2006
                      • 8429

                      #11
                      Originally posted by jrtox
                      Yes, i can coz i call it before.
                      i just stop making programs for 4 years coz i work in other field, not in programming.
                      Oh, ok. If you do find out, please let us know.

                      Perhaps someone else here can answer this. I'd recommend you start a new discussion thread for this question. Most members won't be bothering to read this one, because it has been going on for a while. If people are interested in answering a questions, they'll look for one which doesn't have any replies yet.

                      Comment

                      Working...