473,396 Members | 2,010 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,396 software developers and data experts.

MessageBox yet let the program continue on without waiting?

JM
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?
Nov 17 '05 #1
3 6572
JM,

No, the MessageBox is a modal dialog, and requires that the interaction
continue.

You ^could^ create a new thread, run a message loop on that thread, and
then show the messagebox, and your original thread will not block, but once
that completes, what do you expect the program to do?
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"JM" <JM@discussions.microsoft.com> wrote in message
news:05**********************************@microsof t.com...
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?

Nov 17 '05 #2
JM
Thanks for the help. It's much appreciated. I'll just let things hang until
the user clicks OK.

"Nicholas Paldino [.NET/C# MVP]" wrote:
JM,

No, the MessageBox is a modal dialog, and requires that the interaction
continue.

You ^could^ create a new thread, run a message loop on that thread, and
then show the messagebox, and your original thread will not block, but once
that completes, what do you expect the program to do?
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"JM" <JM@discussions.microsoft.com> wrote in message
news:05**********************************@microsof t.com...
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?


Nov 17 '05 #3
What do you want the MessageBox to show, that the program should be
able to continue processing meanwhile?

If it's an indication of progress, I solved this problem using a
subclass of Form that shows text to the user, and allows the
application to post text to the form as things progress. Sort of a like
a ProgressBar with no bar. :)

This form I created can have a Cancel button, but no OK button, because
OK doesn't mean anything in that context.

So... what are you trying to do? Maybe there's a different control that
you don't know about that is suited to your purpose.

Nov 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: changereality | last post by:
In php how do I call an external script or program without having php waiting for the return? exec and system both seem to wait for the return, I don't want this.
5
by: Johnsy Joseph | last post by:
Hello Everybody, I am trying to write a program that reads a single character, but I always need to press the enter key too. Is there any way to read just a single character without waiting for...
2
by: Jesper | last post by:
Hi, Is there a way to send a http message without waiting for the reply. I just want a server to register some information if its up and running. thanks Jesper.
7
by: gerry | last post by:
I have a com object that is used via an interop assembly - ie. I referenced the com object and vs.net created the interop .dll for it. I create one object per session when the page 1st loads and...
5
by: Luigi | last post by:
Hi to all! I'd like to execute an external program capturing the stdout/stderr messages at "real-time". I mean that I don't want to wait for the end of the process. If I write a code like this:...
3
by: telduivel | last post by:
Can someone please help me with this: I have a python script, that at some point calls a linux bash script (.sh). Starting the shell script is the last thing my python script needs to do, so I...
2
by: Hans Mull | last post by:
Hi! I'm experimenting with boost::thread. I have a GUI application with a slot function: void someFunction(){...} void Frame::OnOkButtonClick(...) { switch(someInteger) { case 0: break
8
by: Bill H | last post by:
In a php script I am using I need to call an external program and have it start running, but I don't want the php script to wait for it to finish. Looking at exec() and system() these would all...
9
by: erikcw | last post by:
Hi, I have a cgi script where users are uploading large files for processing. I want to launch a subprocess to process the file so the user doesn't have to wait for the page to load. What is...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.