Showing message without halting execution

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
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 said:
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?
 
* "=?Utf-8?B?d2hvcm5haw==?= said:
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.
 
Back
Top