Hi Alvo,
Below is an example:
MessageBox.Show(
this, // needs a reference to the "Owner" form
"this is my text", // text to be shown in the message box
"this is the caption", // Title of the message box
MessageBoxButtons.OK, // Button to show
MessageBoxIcon.Warning); // Icon to show
MessageBox.Show() has several overloads, the one shown above gives you
the most flexibility, allowing you to pass in both the Buttons and the Icon.
Regards,
Bennie Haelen
Alvo von Cossel I wrote:
hi,
i am creating an app wich uses lots of messageboxes.
messagrbox.show("cheese", "is tasty");sets the message's title to cheese and
the text is "is tasty". how do i change the iocon for it e.g. warning (a red
exclamation mark)?
thanks in advance
--
Alvo von Cossel I of Germany