Custom Enum for MessageBox

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Dr Cake
    New Member
    • May 2012
    • 8

    Custom Enum for MessageBox

    Hello, recently I've been trying to "play" with MessageBoxes and wondered how may I add custom buttons. A basic MessageBox should look like this:
    Code:
    MessageBox.Show("Message", "Title", MessageBoxButtons.Something);
    However, I'd like to know how to create one with Once, Weekly, Monthly, Daily and Cancel, instead of MessageBoxButto ns.Something. I've tried creating an enum and it displayed on the MessageBox, however, it does let me choose only one of options (Once, Daily, Monthly, etc). How may I make it work properly with MessageBox.Show , so user choose one of these options?

    This is how the enum looks like by the way:
    Code:
    public enum Frequency { Once, Weekly, Monthly, Daily, Cancel }
Working...