Q:

DialogResult.Ok like Custom Class

I am trying to develop a custom input dialog box. In its constructor I want to take a parameter as follows-
PromptType.Question
PromptType.Information
PromptType.Feedback
//etc....

private void buttonTest_Click(object sender, System.EventArgs e) 
{
   InputBoxResult result = InputBox.Show("Some title",PromptType.Question);
}

How can i do it?? 

A:

What you want is an enum:
public enum PromtType
{
    Question,
    Information,
    Feedback
}

public class InputBox
{
    public static void Show(PromtType type)
    {
        //...
    }
}

InputBox.Show(PromtType.Question);

