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. Show Animated Gif Image

Show Animated Gif Image

Scheduled Pinned Locked Moved C#
databasecsharphelpquestionlearning
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.
  • G Offline
    G Offline
    GermanDM
    wrote on last edited by
    #1

    Hi there, I am currently creating a web application in c# 2005, on my search form i would like to display an animated gif image while busy doing the search in the sql database. As soon as the user clicks the search button i want the image to become visible and then as soon as the gridview got binded with the results, i want the image to be invisible again. Now the problem is that the image does not become visible at all :doh: mmmm i dunno where to start finding the problem cause it does run the code but does not actually do it lol. I am thinking i should probably use like "sleep" or threads but thats some weird stuff for me as i am still beginner. Is there any other solution to this problem? Thanks in advance Regards

    M 1 Reply Last reply
    0
    • G GermanDM

      Hi there, I am currently creating a web application in c# 2005, on my search form i would like to display an animated gif image while busy doing the search in the sql database. As soon as the user clicks the search button i want the image to become visible and then as soon as the gridview got binded with the results, i want the image to be invisible again. Now the problem is that the image does not become visible at all :doh: mmmm i dunno where to start finding the problem cause it does run the code but does not actually do it lol. I am thinking i should probably use like "sleep" or threads but thats some weird stuff for me as i am still beginner. Is there any other solution to this problem? Thanks in advance Regards

      M Offline
      M Offline
      Martin 0
      wrote on last edited by
      #2

      Hello, I think the problem is that you are running the control with the gif in the same threat (which is busy) where you are doing the search. You could do a control.Refresh();, after you set Visible=true. But it would only show the not- or rarely moving gif I think. All the best, Martin

      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