Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / March 2006

Tip: Looking for answers? Try searching our database.

WaitForExit

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
moley_cruz@yahoo.com.au - 12 Mar 2006 10:04 GMT
Hi,
I am using WaitForExit to wait for an external batch file to finish
executing.
Why does WaitForExit freeze my vb form ?
thanks
AMercer - 12 Mar 2006 14:20 GMT
> Why does WaitForExit freeze my vb form ?

Because as documented, WaitForExit "blocks the current thread of execution"
and you presumably execute WaitForExit on the form's thread.  If you want
your form unfrozen and don't really need to wait on the batch file, then
don't use WaitForExit.  If frozen is ok and you need to wait, then you might
change the mouse cursor to an hourglass until the batch file completes.  If
you really need to wait for exit and you really need your form unfrozen, then
start a new thread to execute the batch file.
Lynn - 14 Mar 2006 14:25 GMT
how to change the mouse cursor to an hourglass  ?

> > Why does WaitForExit freeze my vb form ?
>
[quoted text clipped - 5 lines]
> you really need to wait for exit and you really need your form unfrozen, then
> start a new thread to execute the batch file.
AMercer - 14 Mar 2006 16:38 GMT
> how to change the mouse cursor to an hourglass  ?

xxx.Cursor = Cursors.WaitCursor

where xxx is a form or a control.
Lynn - 15 Mar 2006 13:30 GMT
how can i Wait for the batch file to exit without hanging my windows form?

> > how to change the mouse cursor to an hourglass  ?
>
> xxx.Cursor = Cursors.WaitCursor
>
> where xxx is a form or a control.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.