I am trying to change Label text
In parent Form
from Child form
but I am getting this error Object reference not set to an instance of an object.
where is the mistake ?
Here is code I am Using
private void btnMedicalClgList_Click(object sender, EventArgs e)
{
this.ParentForm.Controls["lblMenuItem"].Text = "Medical College List";//getting error here
ShowMedicalClgList medifrm = new ShowMedicalClgList();
medifrm.MdiParent = this.ParentForm;
this.Hide();
medifrm.Show();
}