473,320 Members | 1,572 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,320 software developers and data experts.

Showing message without halting execution

The only way that I found to display a message to the user from an application that has an interface is by using the MessageBox.Show() method. What I need to do is notify the user of something without having to wait for user interaction.

Is there a way to display messages on screen that I could remove programmatically when I want to and would not stop execution?

Example:
1) User launches application
2) Application requests input file selection
3) User selects input file
4) Application displays message 'doing something with file' while doing something with file
5) Application finishes 'doing something with file'
6) Application removes message

Nov 20 '05 #1
2 1657
* "=?Utf-8?B?d2hvcm5haw==?=" <wh*****@discussions.microsoft.com> scripsit:
The only way that I found to display a message to the user from an application that has an interface is by using the MessageBox.Show() method. What I need to do is notify the user of something without having to wait for user interaction.

Is there a way to display messages on screen that I could remove programmatically when I want to and would not stop execution?


Write your own messagebox. Some tips:

My FAQ:

For the system icons:

Have a look at the 'SystemIcons' class.

For the system sounds:

\\\
Private Declare Auto Function MessageBeep Lib "user32.dll" ( _
ByVal wType As Int32 _
) As Boolean

Private Const MB_ICONASTERISK As Int32 = &H40 ' Information.
Private Const MB_ICONEXCLAMATION As Int32 = &H30 ' Ausrufezeichen.
Private Const MB_ICONHAND As Int32 = &H10 ' Stopschild.
Private Const MB_ICONQUESTION As Int32 = &H20 ' Fragezeichen.
Private Const MB_OK As Int32 = &H0 ' Standard-OK.
///

Usage:

\\\
MessageBeep(MB_ICONHAND)
///

Notice that Windows' messagebox supports copying its contents to the
clipboard by pressing Ctrl+C.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #2
Whornak,
Create a form that displays the info you need, use Form.Show to show the
info, use Form.Close to stop showing the info.

Hope this helps
Jay

"whornak" <wh*****@discussions.microsoft.com> wrote in message
news:5F**********************************@microsof t.com...
The only way that I found to display a message to the user from an application that has an interface is by using the MessageBox.Show() method.
What I need to do is notify the user of something without having to wait for
user interaction.
Is there a way to display messages on screen that I could remove programmatically when I want to and would not stop execution?
Example:
1) User launches application
2) Application requests input file selection
3) User selects input file
4) Application displays message 'doing something with file' while doing something with file 5) Application finishes 'doing something with file'
6) Application removes message

Nov 20 '05 #3

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

Similar topics

1
by: john bailo | last post by:
Suppose I am writing a program that has to execute as series of steps, but at several of the steps, I want to wait for external events to occur. For example ( and this relates to another of my...
3
by: Job Lot | last post by:
I have three data processing routines which I want to run in threads so that they don’t clog up the UI. How can I halt execution of thread until prior thread completes successfully. Private...
117
by: Peter Olcott | last post by:
www.halting-problem.com
31
by: Peter Olcott | last post by:
The Halting Problem can not be solved within the degree of expressability of a TM. My solution only worked because of its more limited degree of expressability. There is no such thing as a void...
2
by: Don | last post by:
Is there a way to halt execution of JavaScript? Looked in my reference and can't find anything on it. Thanks for your help, Don ----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure...
18
by: ashkaan57 | last post by:
Hi, how can I hide / show a section of a page when a link is clicked? Click on "show section" would show the section and change the link to "hide section", clicking on "hide section" would hide...
2
by: den 2005 | last post by:
Hi Everybody, Is anybody knows how to Hide Execution of batch file at background? I mean without displaying the DOS Prompt window while batch file is being executed. I used code below to execute...
7
by: =?Utf-8?B?TWF0dA==?= | last post by:
Hi I have an app that runs without a main form, just a notification icon, when the user clicks the icon the form is shown, and when the form is minimized it's hidden. This all works great,...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
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...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
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...

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.