Jump to content
Xtreme .Net Talk

Recommended Posts

Posted (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 by Cassio
Posted
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
My website
Posted

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!

  • *Experts*
Posted

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

"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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...