customized MessageBox in c#

  • Thread starter Thread starter Jean Bredeche
  • Start date Start date
J

Jean Bredeche

Hi:

I am trying to create customized confirmation/error/etc dialogs in my
application. Up to now we've been using MessageBox.Show and passing it
the various necessary flags (buttons, icons, etc). By "customized", I
mean I want complete control over the color of the messagebox, the
position/color/size of the buttons, etc.

Do I need to create a custom form from scratch, or is there a way to
subclass MessageBox? (I'm guessing I need to create a custom form). If
I need to create a custom form, is there any way I can make use of the
standard Windows dialog icons (the MessageBoxIcons) or do I have to
create my own icons?

thanks,
Jean Bredeche
bredeche at gmail dot com
 
Hi Jean,

I think creating a custom form should be simpler - well, at least I prefer
my own form when it comes to displaying customized message boxes.
As for re-using system icons, the SystemIcons class contains them all as
static properties.
 
Back
Top