C# “does not contain a constructor that takes '1' arguments”

前端 未结 5 1028
深忆病人
深忆病人 2020-12-11 18:59

I have read through some of the posts on this site relating to this error but I still can\'t work out how to do this - I\'m quite new to C#.

I am trying to pass mult

5条回答
  •  一个人的身影
    2020-12-11 19:43

    Make firstNameLbl and lastNameLbl public Then initiate the new form like this:

    var f3= new Form3();
    f3.firstNameLbl.Text = firstNameTxtBox.Text;
    f3.lastNameLbl.Text = lastNametextBox.Text;
    f3.Show();
    

提交回复
热议问题