473,382 Members | 1,814 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

Waiting Dialog Problem - Will Not Show fully before continuing

I am creating a Waiting Dialog in C# that looks like this:

Expand|Select|Wrap|Line Numbers
  1. WaitingDialog wait = new WaitingDialog();
  2. wait.Show();
  3. //do heavy computation here
  4. wait.Close();
My waiting dialog never fully shows. The dialog appears but the message in the window doesn't fully paint because the computation is taking up all the resources and never allows the window to show fully.

How do I get around this problem?
Jan 30 '10 #1
2 1901
tlhintoq
3,525 Expert 2GB
Add a line between 2 and 3

Application.DoEvents();
Jan 30 '10 #2
Plater
7,872 Expert 4TB
Also, if your heavy computations are loop-based, try sticking the doevents line in the loop too, helps keep the gui window active
Feb 1 '10 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Bob | last post by:
Does anybody know what might cause the following message to show up in the SQL Server Error Log?: Time out occurred while waiting for buffer latch type 2, bp 0x12260f80, page (5:77914), stat...
1
by: Jon Cosby | last post by:
I have a form that needs to take input from another form. Problem is I can't see any way to pause the sequence in the main form to wait for input from the second form. prompt = new...
3
by: JM | last post by:
Newbie Question Is there a way to use Message.Show so that it will allow the program to continue processing without waiting for a user to click OK?
6
by: bryanhobson | last post by:
I'm fairly new to c#, and I am just trying to work out how a 'properties' dialog works. Currently in my code, I have an object represented by the class 'Dog'. The dog object has several...
4
by: Jeff | last post by:
Hi - I'm building a VB.NET Windows application with an MSDE database. Anticipating the possibility that the MSDE service may have been stopped outside of my app, I'm trying to code a way to...
3
by: Benny | last post by:
I have an automated application that opens and manipulates Office documents. Every time a document triggers a dialog to pop up, the process waits for the dialog before it continues. After a...
2
by: Bob | last post by:
I launch Word from within my application (Vs2005, VB) and I would like to make it necessary for the just opened Word to be closed before the rest of my code in the calling sub can execute. How can...
8
by: Janwillem | last post by:
Is there a way to force the wx.FileDialog to show as default the thumbnails vie in stead of list view? thanks, janwillem
11
by: VK | last post by:
In the continuation of the discussion at "Making Site Opaque -- This Strategy Feasible?" and my comment at http://groups.google.com/group/comp.lang.javascript/msg/b515a4408680e8e2 I have...
31
by: Dennis | last post by:
I'm just experimenting with VB.Net, so please forgive me if this question has been asked before... I would like to put a modal dialog in a DLL (totally separate VS Project), and then have my...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.