Generally, the cases where this method can be used are very rare, and VB 6 used to use the DoEvents fundtion to force the system to display information but there does not seem to be an equivalent in VB. It doesn't need to know about the application.ĭoEvents function (Visual Basic for Applications), Of course DoEvents as it is used in this code is a very bad thing. New DispatcherOperationCallback(ExitFrame), frame)
/ Emulates the VB6 DoEvents to refresh a window during long running eventsĭispatcherFrame frame = new DispatcherFrame() ĭ(DispatcherPriority.Background,
The following is a general DoEvents type method using System