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. C#
  4. Animated Gif on my splash screen

Animated Gif on my splash screen

Scheduled Pinned Locked Moved C#
question
2 Posts 2 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.
  • K Offline
    K Offline
    kornstyle
    wrote on last edited by
    #1

    I'm trying to use a animated GIF file on my splash screen. The GIF is placed inside of a picture box. The picture shows fine but the animation doesn't work. When I use the GIF in any other form the animation works. It just won't work on the splash screen. Any Ideas?

    H 1 Reply Last reply
    0
    • K kornstyle

      I'm trying to use a animated GIF file on my splash screen. The GIF is placed inside of a picture box. The picture shows fine but the animation doesn't work. When I use the GIF in any other form the animation works. It just won't work on the splash screen. Any Ideas?

      H Offline
      H Offline
      Heath Stewart
      wrote on last edited by
      #2

      There could be several things wrong, but you need to be more specific about how you're dealing with your splash screen, since it could be implemented in countless different ways. The important thing is that you always modify a control - like change the PictureBox.Image property if that's what you're doing - in the thread on which the control was created. You can do this using the InvokeRequired property and the Invoke method, both of which include an example of using them (they're defined by the Control class and, thus, inheritted by every derivative class). If you're doing this on a timer's event handler (like the System.Windows.Forms.Timer component), than you are doing this in a different thread and the results are undefined. This is, most likely, the problem you're having. Now, if you mean the GIF is animated and your PictureBox isn't animating it, please post some additional code to help us understand how you're using the control. This posting is provided "AS IS" with no warranties, and confers no rights. Software Design Engineer Developer Division Sustained Engineering Microsoft [My Articles]

      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