Customized MessageBox (dialog box) Windows Forms C#
===

In order to try to use a dialog box instead of MessageBox I used the next code:

            static public DialogResult ShowDialog(string title, string largeHeading, string smallExplanation,
            string leftButton, string rightButton, Image iconSet)
        {
            using (BetterDialog dialog = new BetterDialog(title, largeHeading, smallExplanation, leftButton,
                rightButton, iconSet))
            {
                DialogResult result = dialog.ShowDialog();
                return result;
            }
        }

for more details, this code is found [here][1]

Then I used a button click event to call the dialog box as follows:

            private void btnDialog_Click(object sender, EventArgs e)
        {
            BetterDialog dialogBox = new BetterDialog("Special Dialog", "large heading", "small explanation", null, "Ok", null);
            dialogBox.ShowDialog(this);
        }

I got the Error:

'DotNetPerls.BetterDialog' does not contain a constructor that takes 6 arguments.


What's wrong, Any idea please ?



  [1]: http://www.dotnetperls.com/customized-dialog