Monday, December 1, 2014

binding source is inaccessible due to its protection level

Hi, this is the original code that I'm using



this.studentBindingSource.AddNew();

but I want it to execute when I click the linklabel i'm using from another form so I tried using this and I get the error



frmRegister freg = new frmRegister();

private void lblSignup_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
freg.studentBindingSource.AddNew();
freg.ShowDialog();
this.Hide();
}



TIA


No comments:

Post a Comment