I have a problem. I have a baseform which get a string parameter. Then i have a form which inherited from other. it has error.

Sep 3 2012 8:15 AM
Then i have a form which inherited from other. it has error.

Example : BaseForm

public partial class frmBaseListEdit : DevExpress.XtraEditors.XtraForm
    {
        public string kod = "";
        public frmBaseListEdit(string _kod)
        {
            kod = _kod;
            InitializeComponent();
        }
    }

Example : Other form

public partial class frmuserform : Unipa.BaseForms.Forms.frmBaseListEdit
    {
        public frmuserform()
        {
            InitializeComponent();
        }
    }

Error is :Error1'frmBaseListEdit' does not contain a constructor that takes '0' arguments

I must send parameters again but how?


Answers (1)