1
Answer

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.

ibrahim uzul

ibrahim uzul

12y
1k
1
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)