Best method is to create a form for the message... Turn off the
control-box in the properties so it looks like a popup and set for "Fixed
Dialog".
Put a label in the middle of the form and a timer.
Then expose 2 properties and a function. Property 1 is a string called
MsgText, Property 2 is the length of time (in ms) to display. The function
is called display.
The function sets the timer interval to the length, the label text to the
MsgText and then does a me.showdialog..
If the timer.tick event just do a me.close to close the form.
To call the popup just instanciate the form, set the 2 properties and then
call the Display function.. ie
dim frm as new popupmessage
frm.MsgText="This is the message"
frm.MsgDisplayLength=5000
frm.display
frm.dispose
If you want to get advanced then wrap the whole lot up in a class.
Hope this helps
Simon
"genojoe" <ge*****@discussions.microsoft.com> wrote in message
news:33**********************************@microsof t.com...
I do not understand what you mean. I know how to use a timer to start
something like displaying a message or updating a database but once I open
a
Message box, I do not know how to use a timer to force the message to
close.
Can you provide an example?
"Brad Roberts" wrote:
You can use the Timer control in a Win Form or use system.Timers.Timer.