MsgBox as Notifier

05-09-2006, 08:28 AM

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?


05-09-2006, 08: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