Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HOW TO FLASH UP A MSG BOX AND THEN CLOSE AUTOMATICALLY 1

Status
Not open for further replies.

MATTTHEDUDE

Technical User
Apr 24, 2003
4
GB
Does anyone know how to put up a msg box and then close it without having to result to manual user input.

I can create the msg box but the code halts until the user presses the OK or Cancel keys.

I just need it to appear for a second or so and then get closed by the code.
 
Hey.

This is probably not the best solution, but it works for me...

Use wscript to place the message.. the user can click okay, but if they don't it goes away after a second anyhow...


Global WshShell As Object

Sub Main
Set WshShell = CreateObject( "WScript.Shell" )
WshShell.Popup "Example text", 1, "Example Title", 0
End Sub


Good luck!
 
To my knowledge this is not possible from within Extra!Basic. Even dialog boxes are modal.

calculus
 
Give it a shot.

I compiled and ran that before I posted it, so it will run in extra!6.7 on a win2k platform.
 
Vexaxix, I wasn't saying your work-around wouldn't work, I'm saying it's not possible without a work-around.

calculus
 
Long day at the keyboard.. wasn't paying nearly enough attention. Sorry 'bout that.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top