0
我创建了一个学生对象数组,我想从一个窗体传入另一个窗体。当我尝试这样做,我得到”在C中形式之间传递一个对象#
Inconsistent accessibility: parameter type 'College_Life.Student[]' is less accessible than method 'College_Life.frmStudentOutput.frmStudentOutput(College_Life.Student[])
首届形式如下:。
namespace College_Life
{
public partial class frmInput : Form
{
private int intCount;
private Student[] ALevel = new Student[1];
.
.
.
private void cmdSort_Click(object sender, EventArgs e)
{
//
frmStudentOutput OutputForm = new frmStudentOutput(ALevel);
OutputForm.Show();
}
第2的形式看起来像
private Student[] ALStudent;
public frmStudentOutput(Student[] ALStudent)
{
InitializeComponent();
希望你能帮助 谢谢