Questions tagged [doevents]
106 questions
1
vote
1 answer
Windows Forms Click event repeating itself
I have a strange problem with a Windows Forms event. To be exact, it's a KryptonHeaderGroup's ButtonSpec Click event, but it also happens with a plain vanilla System.Windows.Forms.Button.
In the click event, the user interface is brought down…

OregonGhost
- 23,359
- 7
- 71
- 108
1
vote
2 answers
A proper way to output text immediately in Java Swing GUI
Such a piece of code:
private void log(String message) {
LogBox.append(message + "\n");
}
private void log(Exception e) {
log(e.getMessage());
}
private void ConvertButtonActionPerformed(java.awt.event.ActionEvent evt) {
String url =…

Paul
- 25,812
- 38
- 124
- 247
1
vote
1 answer
Application.DoEvents() and freezing on some machine
I have a winforms application which makes calls to Application.DoEvents(). Now the app freezes around the time this method is called (no surprise).
However, this only happens on some machines. Is it fair to say that this would be due to machine…

GurdeepS
- 65,107
- 109
- 251
- 387
1
vote
1 answer
How to use BackgroundWorker rather then Application.DoEvent to prevent application from hanging
I am beginner in c#/.net, so please tell me how to use BackgroundWorker rather then Application.DoEvent.
This is my code:
while (webBrowser1.ReadyState!= WebBrowserReadyState.Complete)
{
Application.DoEvents(); //how to use "BackgroundWorker" here…

Jonas Gobel
- 153
- 3
- 5
- 13
1
vote
1 answer
Application.DoEvents in FormClosing event
I have implemented my custom ThreadManager which has been working flawlessly during my tests. When user wants to close the application, the closing is suspended until all threads exit or they select to end the application without waiting (after 30…

iCantSeeSharp
- 3,880
- 4
- 42
- 65
0
votes
0 answers
Creating the MyControl.DoEvents() method
We all know that calling the Application.DoEvents() method causes the current thread to be suspended while all waiting window messages are processed. If a message causes an event to be triggered, then other areas of the application code may execute.…

Mehdi
- 2,194
- 2
- 25
- 39
0
votes
2 answers
without using DoEvents, how to detect if a button has been pressed?
Currently, I call DoEvents in order to check if Button Foo in Form Bar has been clicked. This approach works but it takes too much processing power, delaying the program.
I believe that the delay could be reduced if I could only check if Button Foo…

Peretz
- 1,096
- 2
- 18
- 31
0
votes
1 answer
VB6 DoEvents not Working as Desired
I am working with a proprietary VB6 COM library. The library has some functions which fire and I get the results once complete through Events.
Container Class:
Private WithEvents myObj As proprietaryObj
Public status as Integer
Set myObj = new…

Authman Apatira
- 3,994
- 1
- 26
- 33
0
votes
2 answers
how to load UI Controls one-after-another in WPF
I'm working on a WPF Application where there are multiple list views.
I get all the data necessary for all the list view at once. However, my requirement is such that, the list view that has less number of items should get loaded first and displayed…

Nihar Ranjan
- 73
- 1
- 5
0
votes
1 answer
Label Text UserControl Not updateing
Sorry I won't be posted code on this post. Please forgive me.
So I have a tab control and on that tab control I have labels are populated with text from and XML file. On load the data shows but once I do some actions and that text file gets updated…

LoonieToonie
- 19
- 4
0
votes
0 answers
Catching DoEvents in excel vba
I'm writing excel/vba to read a word file and parse through the contents, creating a CSV file from those contents.
I have a loop that looks like this:
with doc
for each para in doc.paragraphs
DoEvents
txt = trim(para.range.text)
…

elbillaf
- 1,952
- 10
- 37
- 73
0
votes
1 answer
In Visual Basic 2022, can I interrupt a panel.Refresh() in the middle of plotting on the panel?
I am plotting a Julia Set in a panel named pnlGraph that is 601 x 601 pixels. I determine the color of each pixel in a Paint event, and plot the entire Set using the command pnlGraph.Refresh(). It takes the PC about a minute to plot all 361,201…

Earl Whitney
- 1
- 1
0
votes
0 answers
PowerPoint animations while running a count down macro
I have a PowerPoint presentation in Kiosk Mode. In normal conditions during the presentation when user clicks the wrong option the shape's background fills red and plays a buzzer sound. If the user clicks the correct answer the background is filled…
0
votes
3 answers
WPF Window does not finish rendering when download starts
I am writing a small file download utility. The DownloadFile() method is called on Window_Loaded() event of my MainWindow. Since the DownloadFile method is resource intensive, the MainWindow does not finish rendering on screen when the download…

RKh
- 13,818
- 46
- 152
- 265
0
votes
0 answers
Doevents() function in c++ linux
I need a function equivalent to Doevents() in c++ on linux.
I found the equivalent of this function in c++ but nothing works in linux, they are using Windows.h.
doevents-equivalent-for-c and Doevents() in c++
I need it for this function:
void…

naoussa
- 107
- 1
- 8