Oh.. oh.. be very careful with the DoEvents(). Don't use it straight in the
loop or work code.
The application will become slow as well and you can kill your application
without cleaning up if you use DoEvents()...
Instead use it with a timer something like with a status/statusbar property
Private Sub tmStatusMonitor_Tick(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles tmStatusMonitor.Tick
If strStatus <> "Ready" Then 'strStatus is the custom property
sbStatus.Text = strStatus
Application.Doevents()
End If
End Sub
Hope this helps
--
Cheers,
JP
------------------------------------------------------------------
A program is a device used to convert,
data into error messages
------------------------------------------------------------------
"Mona" <mo**@discussions.com> wrote in message
news:eo**************@TK2MSFTNGP12.phx.gbl...
Hello Gabi,
How are you doing?
For preventing an application from freezing, if you applicaiton uses some
loop. Try using
Application.DoEvents() method
MSDN URL:
http://msdn.microsoft.com/library/de...ventstopic.asp
This will enable the user to take actions while your form/procedure works.
I hope this helps.
Thanks
Mona
[Grapecity]
"Gabi" <Ga**@discussions.microsoft.com> wrote in message
news:B4**********************************@microsof t.com... Hi All,
i built dome dialog that can show the progress and make some actions.
when im activating it, and do not touch any screen i can see the progress
bar progress and evrything work nice.
but when im open a new window (my computer for example)
the gui frozen and not respons until the gui finish the task.
is any one can tell me how can i can solve this kind of problem???
Thanks