Custom Dialog with MessageBoxOptions.ServiceNotification

Hi All,

I'm trying to show my own dialog (windows form) from a windows service, unfortunatly this is not possible unless I can somehow make it work like a MessageBox and pass it the MessageBoxOptions.ServiceNotification.

Using the standard MessageBox won't work as I actually don't expect it to be seen by users most of the times and therefore was wanting to use my own form that has a countdown timer to close itself if no user interaction occurs within a given timeframe.

The Form.Show doesn't take the MessageBoxOptions, but is there a way to make it accept these?

Thanks

EZoR

[620 byte] By [EZoR] at [2007-12-24]
# 1

There isn't a way to make Form.Show() accept the parameters. What you're trying to do isn't very easy with MessageBox's and Services. There are too many sources of errors and compilcations.

Have you considered adding a system tray icon for your service and having it display the notifications?

JaredParsonsMSFT at 2007-8-31 > top of Msdn Tech,Visual Basic,Visual Basic Language...