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. timer!!!!

timer!!!!

Scheduled Pinned Locked Moved Visual Basic
helpquestiondocker
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.
  • R Offline
    R Offline
    Rharzkie
    wrote on last edited by
    #1

    can somebody help me. i made a project that compose of many forms., in the 2nd form, it has timer that has only 30 min. and it will stop if 30 minutes is over. But if the 30 minutes is not yet over and i already reach the last form which is form10, the timer in the 2nd form should stop and the 2nd form will be hide. How can i do it? the project that i am making is an IQ test, and it has many pages, when the test is answered already, the timer should stop.. can somebody please help me about my problem.. thanks!

    C 1 Reply Last reply
    0
    • R Rharzkie

      can somebody help me. i made a project that compose of many forms., in the 2nd form, it has timer that has only 30 min. and it will stop if 30 minutes is over. But if the 30 minutes is not yet over and i already reach the last form which is form10, the timer in the 2nd form should stop and the 2nd form will be hide. How can i do it? the project that i am making is an IQ test, and it has many pages, when the test is answered already, the timer should stop.. can somebody please help me about my problem.. thanks!

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

      You end up with 10 forms visible ? Sounds like you really want a wizard type interface. Use delegates to get form10 to tell form2 that the timer is no longer required, and to make that form hide.

      Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

      R 1 Reply Last reply
      0
      • C Christian Graus

        You end up with 10 forms visible ? Sounds like you really want a wizard type interface. Use delegates to get form10 to tell form2 that the timer is no longer required, and to make that form hide.

        Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

        R Offline
        R Offline
        Rharzkie
        wrote on last edited by
        #3

        no, the other forms will not be visible. the only visible form is the 2nd form, the form that has timer. how to use delegates? can you tell me the codes for it?

        A 1 Reply Last reply
        0
        • R Rharzkie

          no, the other forms will not be visible. the only visible form is the 2nd form, the form that has timer. how to use delegates? can you tell me the codes for it?

          A Offline
          A Offline
          Adam Loudermilk
          wrote on last edited by
          #4

          I don't understand completely::confused: If all of these forms are in the same application then why don't you have form10 call form2's timer and tell it to stop.

          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