Windows forms and animated gift progress
-
Hi guys, Please help! I am trying to show an animated gif on button click. in my click event I have a while loop and until the while loop condition is met I would like to show an animated gif to inform the user that the application is searching... I have tried different methods, threads, a new form with the picturebox and image and all of them show the image but the transition/rotation of the image is not smooth. Please help on how to go about this. Thank you in advance
Sameer
-
Hi guys, Please help! I am trying to show an animated gif on button click. in my click event I have a while loop and until the while loop condition is met I would like to show an animated gif to inform the user that the application is searching... I have tried different methods, threads, a new form with the picturebox and image and all of them show the image but the transition/rotation of the image is not smooth. Please help on how to go about this. Thank you in advance
Sameer
Sounds like your search needs to go into another thread, so that the gif code can run smoothly.
Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
-
Sounds like your search needs to go into another thread, so that the gif code can run smoothly.
Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
-
Thanks Christian for your response. Can you please give me an example or something, I am quite new to threading. Thanks in advance.
Sameer
BackgroundWorker[^] is the class I use for threading.
Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
-
BackgroundWorker[^] is the class I use for threading.
Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
-
Hi guys, Please help! I am trying to show an animated gif on button click. in my click event I have a while loop and until the while loop condition is met I would like to show an animated gif to inform the user that the application is searching... I have tried different methods, threads, a new form with the picturebox and image and all of them show the image but the transition/rotation of the image is not smooth. Please help on how to go about this. Thank you in advance
Sameer