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 out of control!

Timer out of control!

Scheduled Pinned Locked Moved Visual Basic
comtutorialquestionannouncement
9 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.
  • C Offline
    C Offline
    Code Crapper
    wrote on last edited by
    #1

    I need to make 1 of my textboxes (which displays available system RAM) update itself every few seconds, now I very easily understand this example: http://abstractvb.com/code.asp?F=26&P=1&A=1032[^] BUT... It up an exception saying something about threading.. has VB 2005 gone mad and is trying to eternally pee on me! or am i doing something wrong because i followed that exactly and i get that exception...?

    L G 2 Replies Last reply
    0
    • C Code Crapper

      I need to make 1 of my textboxes (which displays available system RAM) update itself every few seconds, now I very easily understand this example: http://abstractvb.com/code.asp?F=26&P=1&A=1032[^] BUT... It up an exception saying something about threading.. has VB 2005 gone mad and is trying to eternally pee on me! or am i doing something wrong because i followed that exactly and i get that exception...?

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Can you please post the exact error?


      Extreme Exe

      C 1 Reply Last reply
      0
      • L Lost User

        Can you please post the exact error?


        Extreme Exe

        C Offline
        C Offline
        Code Crapper
        wrote on last edited by
        #3

        This is what happens no matter what i put in there.. http://img508.imageshack.us/img508/7334/thiskm0.jpg[^]

        1 Reply Last reply
        0
        • C Code Crapper

          I need to make 1 of my textboxes (which displays available system RAM) update itself every few seconds, now I very easily understand this example: http://abstractvb.com/code.asp?F=26&P=1&A=1032[^] BUT... It up an exception saying something about threading.. has VB 2005 gone mad and is trying to eternally pee on me! or am i doing something wrong because i followed that exactly and i get that exception...?

          G Offline
          G Offline
          Guffa
          wrote on last edited by
          #4

          Use a timer control instead. It runs in the same thread.

          --- b { font-weight: normal; }

          C 1 Reply Last reply
          0
          • G Guffa

            Use a timer control instead. It runs in the same thread.

            --- b { font-weight: normal; }

            C Offline
            C Offline
            Code Crapper
            wrote on last edited by
            #5

            I havent used timer controls, how would i type one out?

            L G 2 Replies Last reply
            0
            • C Code Crapper

              I havent used timer controls, how would i type one out?

              L Offline
              L Offline
              Lost User
              wrote on last edited by
              #6

              Just type: Dim TimerControl As New Timer


              Extreme Exe

              C 1 Reply Last reply
              0
              • L Lost User

                Just type: Dim TimerControl As New Timer


                Extreme Exe

                C Offline
                C Offline
                Code Crapper
                wrote on last edited by
                #7

                oh ok thanks :-D

                1 Reply Last reply
                0
                • C Code Crapper

                  I havent used timer controls, how would i type one out?

                  G Offline
                  G Offline
                  Guffa
                  wrote on last edited by
                  #8

                  Just drag the Timer control from the toolbox to your form.

                  --- b { font-weight: normal; }

                  C 1 Reply Last reply
                  0
                  • G Guffa

                    Just drag the Timer control from the toolbox to your form.

                    --- b { font-weight: normal; }

                    C Offline
                    C Offline
                    Code Crapper
                    wrote on last edited by
                    #9

                    ah cool ;P

                    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