2
Answers

How to access the menustrip items in MDIParent form?

Ujjval Shukla

Ujjval Shukla

8y
369
1
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)