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