Click here to Skip to main content
15,566,065 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I need help from you.

I have a form, and on that form I am showing a progress bar.
(That was a round gif image).

When I click on the button the gif image is visible and the result I get from database make the image invisible.

I am doing this, but if the database connection failed, the form is hanging and my image is not working.

I still want to run that image.

Do you have any solution for that?
Updated 16-Dec-10 4:46am
Dalek Dave 16-Dec-10 9:47am    
Edited for Grammar and Syntax.

I think you did not use try catch block. So, Use try catch block, get the error message and show that message as alert. Finally make your image visible false.
Share this answer
I think your GIF stops animating when your connection takes time to connect or fails. If this is the case, use a thread, or backgroundworker to do the connection stuff.
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900