Cassio Posted April 28, 2003 Posted April 28, 2003 (edited) I have my windows app accessing a web service to get some information. I want to show the user a status form so he knows the app is responding. But when the app is connecting to the web service, the form is frozen until the process is done. Do I have to use a threat? Thanks. Edited April 28, 2003 by Cassio Quote Stream of Consciousness (My blog)
hog Posted April 28, 2003 Posted April 28, 2003 Not sure as I haven't looked yet to see if this is in VB.NET but I used to use the DoEvents() method when using VBA to allow other things to happen whilst slow bits were in progress Quote My website
Guest mutant Posted April 28, 2003 Posted April 28, 2003 Its Application.DoEvents. Try using it. Quote
Cassio Posted April 28, 2003 Author Posted April 28, 2003 Thanks. Ill try that. Quote Stream of Consciousness (My blog)
Cassio Posted April 29, 2003 Author Posted April 29, 2003 The Apllication.DoEvents() worked, but I also wanted to show something moving on the status form. I made a gif animation and inserted it into a picturebox, but when the status form is loaded it stay frozen until the web request finishes and the gif animation freezes too. I also tried using a timer to change the gif in the picturebox but it doesnt work neither. Any ideas? Thanks! Quote Stream of Consciousness (My blog)
Cassio Posted April 29, 2003 Author Posted April 29, 2003 I just used a thread and it worked great. Quote Stream of Consciousness (My blog)
*Experts* Nerseus Posted April 29, 2003 *Experts* Posted April 29, 2003 You might also want to try the asynchronous versions of the WebService. They should be built automatically and are usually called BeginWebServiceName and EndWebServiceName. -Ner Quote "I want to stand as close to the edge as I can without going over. Out on the edge you see all the kinds of things you can't see from the center." - Kurt Vonnegut
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.