Ujjval Shukla

Ujjval Shukla

  • NA
  • 283
  • 148.9k

How to access the menustrip items in MDIParent form?

Mar 7 2016 1:46 AM
Below code shows error object reference not set an instance of object- 
 
private void MDIParent1_Load(object sender, EventArgs e)
{
MenuStrip mstrp = (MenuStrip)this.Controls["menuStrip"];
mstrp.Items["Emp_Mas_salary"].Enabled = false;
}

Answers (2)