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. Windows Forms
  4. Images Changing On Timer Tick

Images Changing On Timer Tick

Scheduled Pinned Locked Moved Windows Forms
csharphelp
6 Posts 4 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.
  • S Offline
    S Offline
    Sachin Dubey
    wrote on last edited by
    #1

    Is there possible to change an image in a panel at particular time period in c#.net I Have 6 Images and 2 picture box.... First on load of form 2 images i have to display.. after 30 seconds another 2 images.. and after 30 sec another 2 images..and after that again circular cycle is start.. Pls Help Me

    G L 2 Replies Last reply
    0
    • S Sachin Dubey

      Is there possible to change an image in a panel at particular time period in c#.net I Have 6 Images and 2 picture box.... First on load of form 2 images i have to display.. after 30 seconds another 2 images.. and after 30 sec another 2 images..and after that again circular cycle is start.. Pls Help Me

      G Offline
      G Offline
      Giorgi Dalakishvili
      wrote on last edited by
      #2

      Yes, it is. Where are you stuck?

      Giorgi Dalakishvili #region signature My Articles Asynchronous Registry Notification Using Strongly-typed WMI Classes in .NET [^] My blog #endregion

      S 1 Reply Last reply
      0
      • G Giorgi Dalakishvili

        Yes, it is. Where are you stuck?

        Giorgi Dalakishvili #region signature My Articles Asynchronous Registry Notification Using Strongly-typed WMI Classes in .NET [^] My blog #endregion

        S Offline
        S Offline
        Sachin Dubey
        wrote on last edited by
        #3

        I am just at a loss to think that i use threading and make that sleep or i use timer on which i write code on Click event.. Actually tell me how i can do this...i hav to change imag in every 30 sec.. which path is stotred in xml database file on client machine...

        A 1 Reply Last reply
        0
        • S Sachin Dubey

          I am just at a loss to think that i use threading and make that sleep or i use timer on which i write code on Click event.. Actually tell me how i can do this...i hav to change imag in every 30 sec.. which path is stotred in xml database file on client machine...

          A Offline
          A Offline
          Ashfield
          wrote on last edited by
          #4

          Use the timer, its easier than using a background thread which can't update the UI directly.

          Sachin Dubey wrote:

          xml database file

          Now there's an oxymoron for you :-D

          Bob Ashfield Consultants Ltd Proud to be a 2009 Code Project MVP

          1 Reply Last reply
          0
          • S Sachin Dubey

            Is there possible to change an image in a panel at particular time period in c#.net I Have 6 Images and 2 picture box.... First on load of form 2 images i have to display.. after 30 seconds another 2 images.. and after 30 sec another 2 images..and after that again circular cycle is start.. Pls Help Me

            L Offline
            L Offline
            Luc Pattyn
            wrote on last edited by
            #5

            For periodic actions on the GUI, use a System.Windows.Forms.Timer; its Tick handler runs on the GUI thread, so you can manipulate Controls without any problem. :)

            Luc Pattyn


            Local announcement (Antwerp region): Lange Wapper? Neen!


            S 1 Reply Last reply
            0
            • L Luc Pattyn

              For periodic actions on the GUI, use a System.Windows.Forms.Timer; its Tick handler runs on the GUI thread, so you can manipulate Controls without any problem. :)

              Luc Pattyn


              Local announcement (Antwerp region): Lange Wapper? Neen!


              S Offline
              S Offline
              Sachin Dubey
              wrote on last edited by
              #6

              Ya Thanks

              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