J
Jeff Johnson [MVP: VB]
I'm looking to make an enhanced MessageBox. I want to make it work very much
like the regular MessageBox as far as developers are concerned, so I'd like
to use the Show() method to display it. However, I want it displayed
modally, which we normally achieve with ShowDialog(). Is there a way that
the called form can force itself to display modally, or can you think of
another way I can do this?
Another question I have is about icons. I want to pass a standard
MessageBoxIcon enum to the Show() method and then display the OS-specific
icon that was requested. In other words, it'll look different on XP than on
2000. To this end I can't simply stick a graphic in my assembly. I can
probably figure out how to DRAW the icon myself, it's RETRIEVING it from the
system that's beyond me right now. Suggestions?
like the regular MessageBox as far as developers are concerned, so I'd like
to use the Show() method to display it. However, I want it displayed
modally, which we normally achieve with ShowDialog(). Is there a way that
the called form can force itself to display modally, or can you think of
another way I can do this?
Another question I have is about icons. I want to pass a standard
MessageBoxIcon enum to the Show() method and then display the OS-specific
icon that was requested. In other words, it'll look different on XP than on
2000. To this end I can't simply stick a graphic in my assembly. I can
probably figure out how to DRAW the icon myself, it's RETRIEVING it from the
system that's beyond me right now. Suggestions?