Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 261
  • Last Modified:

messagebox.show with warning?

hi
i do messagebox.show if I want to show a message but is there a specific one for a warning?
Or do I just put "Warning! Etc Etc") as the parameter?
Thanks
Paul
0
paulwhelan
Asked:
paulwhelan
1 Solution
 
SmithJWCommented:
yes, you always use MessageBox.Show();, but you can add extra parameters
MessageBox.Show("Message Text", "Title" Buttons, Style)

e.g. i think this is what you are trying to do

MessageBox.Show("Something has happened", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning);
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now