binding source is inaccessible due to its protection level

  • Thread starter Thread starter Annyeongja
  • Start date Start date
A

Annyeongja

Guest
Hi, this is the original code that Im using

this.studentBindingSource.AddNew();

but I want it to execute when I click the linklabel im 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();
}
b527f2ecac52f4867aac448dda9cf863._.png


TIA

Continue reading...
 
Back
Top