> 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.