Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Creating a Child Process
Message
General information
Forum:
Visual Basic
Category:
Other
Miscellaneous
Thread ID:
00060564
Message ID:
00060565
Views:
18
>I am creating a client application in VB for Windows95 for web courier which transfers a large files 10 - 200 mb.
>
>I am facing a problem with a DO .. WHILE Loop that reads the file to be sent in a binary mode through the winsock control, 1K at a time, during the transmission the whole FORM is inactive until the transmission is done, no control over the main FORM.
>
>I am looking for a solution by creating a child process that can execute the DO .. WHILE Loop in the background and not effecting the main FORM, please any idea how this can be done.
>
>T.Y

Hi Tony

The Easy Way:
Place a DoEvents in in loop. The users will be able to access the main form.

The Hard Way:
Use multi-threading. Ouch!
I never used it but I read that it's not an easy task.
You can find a very good article online at www.desaware.com
It's written by Dan Appleman.
Guy Barrette, MCSD
============
Blog http://weblogs.asp.net/guybarrette
Microsoft Regional Director, Montreal, Canada www.microsoft.com/rd
MVP, ASP.NET http://mvp.support.microsoft.com/
President, Montreal Visual Studio User Group www.guvsm.net
INETA Regional Rep for Quebec www.ineta.org
UniversalThread Magazine Columnist (.NET Books Review Column) www.utmag.com
Tech Chair French Track, DevTeach 2004 & 2005 www.devteach.com
Business Architect, Microsoft Team - Nurun Inc www.nurun.com
XBox Live Gamer Tag: Slomo QC CA
Previous
Reply
Map
View

Click here to load this message in the networking platform