okay so i solved it myself by creating a public method for the disable controls in the parent form and then calling in it in the child form.
//this in the parent form
public void DisableControls()
{
adminTSMenuItem.Enabled = false;
}
public void EnableControls()
{
adminTSMenuItem.Enabled = true;
faultTSMenuItem.Enabled = true;
}
//login child form
f (txtUserID_.Text != "Admin")
{
MessageBox.Show("User Identity and Password Verified");
((Main)this.MdiParent).DisableControls();
}
else
{
((Main)this.MdiParent).EnableControls();
}
this.Close();
Thanks Guys help me alot.