Questions tagged [doevents]

106 questions
1
vote
1 answer

How To Make A For Loop Wait For User Input?

I have a for loop that goes to a site and posts to its forms. For every item in the listbox I want it to wait for the user to fill out the data to the site, then move. The key point here is 'wait'. So my question is: is it possible to make a for…
user1017524
  • 241
  • 9
  • 17
1
vote
4 answers

I am looking for the PHP equivalent for VB doevents

I am looking for the PHP equivalent for VB doevents. I have written a realtime analysis package in VB and used doevents to release to the operating system. Doevents allows me to stay in memory and run continuously without filling up memory and…
gerardg
  • 203
  • 2
  • 9
1
vote
3 answers

Excel VBA macro slows down unpredictably, usually at DoEvents

What can be happening that slows down Excel to a crawl, sometimes for a minute or two, sometimes for hours, and its workload is spread across calls to DoEvents? Unfortunately, I can't post code because there seem to be no code causing the problem.…
stenci
  • 8,290
  • 14
  • 64
  • 104
1
vote
1 answer

Need to Pause VBA Script While Links Update

The core problem appears to be in the sub procedure. For simplicity I placed this in the main procedure: The problem I am facing is in the following code: Sub US_Sub01() Dim NAtotal As Integer NAtotal = Worksheets("Dashboard").Cells(20,…
Steve
  • 13
  • 5
1
vote
2 answers

jQuery timing - wanting to add something akin to DoEvents() in a method

I have a table of data that contains about 260 rows. Each of these rows is identified by an attribute such as parentHeaderName. When the header of that table is clicked, I have some jQuery in place that briefly changes the header to an…
1
vote
1 answer

Why am I getting Run-time error '1004' with my VBA code to copy and paste from one workbook to another?

I am having trouble with my VBA code for my macro that I want to open the msoFileDialogFolderPicker and the user pick a folder in which all the excel files will be opened and one by one data will be copied from the newly open workbook and pasted…
1
vote
1 answer

Calling DoEvents in Application.Idle

I stay away from Application.DoEvents, since there is the issue of re-entrancy and there is always another way to avoid holding up the UI. I've long prefered to do background work in the Application.Idle event as a simple alternative to…
snarf
  • 2,684
  • 1
  • 23
  • 26
1
vote
2 answers

C# BackgroundWorker - how should i get rid of DoEvents

I'm trying to figure out the best way to handle a backgroundworker that is triggered off radio button clicks. I created a very simple form with 3 radio buttons and a label. Each of the radio buttons share the same event radioButton_CheckedChanged.…
poco
  • 2,935
  • 6
  • 37
  • 54
1
vote
0 answers

WPF Dispatcher.PushFrame vs WinForms Application.DoEvents?

In WinForms, Application.DoEvents method has been regarded as evil by some people. Can anybody tell if its counterpart of Dispatcher.PushFrame in WPF is safe to use?
newman
  • 6,841
  • 21
  • 79
  • 126
1
vote
1 answer

How to show progress during app startup in Xamarin Forms

I have a Xamarin Forms app that needs to perform a sequence of long-running operations during startup. I would like to inform the user of progress, using a page with a simple status message which changes as the sequence progresses. The sequence of…
Tim Coulter
  • 8,705
  • 11
  • 64
  • 95
1
vote
1 answer

VB6 program crashing during DoEvents, why?

I have a printing application that is using the Printer object to print files. On one particular machine (not others), this program will crash after processing some number of files (20 or so). The crashes always occur during a DoEvents call. Has…
Stringfellow
  • 43
  • 1
  • 8
1
vote
0 answers

DoEvents in Excel Mac 2011 VBA for Shape Animation Doesn't Work

I'm trying to make an animation of a point moving horizontally, representing the solution of an differential equation that represents a nonlinear dynamical system. I'm using a shape (a small oval to represent the point), and my idea is to update the…
1
vote
1 answer

Is calling Application.DoEvents on main thread same as in ThreadPool?

We try to automate test over some old legacy code. There is a form which opens, run the timer and read data from port. The unittest open the form, but the timer does not tick until Application.DoEvents start process the process the windows message…
Tomas Kubes
  • 23,880
  • 18
  • 111
  • 148
1
vote
2 answers

WPF "DoEvents": how to implement it?

I found this two implementation for "DoEvents" method: SOLUTION 1: System.Windows.Application.Current.Dispatcher.Invoke( System.Windows.Threading.DispatcherPriority.Background, new System.Threading.ThreadStart(() => { })); SOLUTION…
Luca Petrini
  • 1,695
  • 2
  • 28
  • 53
1
vote
0 answers

.NET Equivalent for VB6 DoEvents + Sleep

I have a program that I'm updating from VB6 to VB.NET that is used for making optical measurements. The hardware runs Win XP or Win 2000 Embedded. In the original code, there is a section that is triggered after a measurement is started that uses…
DBoman
  • 39
  • 2