MsgBox as Notifier

bees292
05-09-2006, 09:28 AM
Hi,

I've written a simple program that watches for a file in a folder, and then creates a msg box when the file has been found. The idea being that this msgbox will then pop up on the screen to alert the user. However, when I am using another program my msgbox just sits in the background being a bit useless :-(

I want this to slap me in the face!

Any ideas?

Thanks

00100b
05-09-2006, 09:40 AM
Include the VbMsgBoxSetForeground constant with the value passed to the Buttons argument of the MsgBox function.

MsgBox "Peek-A-Boo", vbOkOnly Or vbMsgBoxSetForeground, "Hide And Seek"

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum