1) Change your username: Never post your email address in any forum, unless you really like spam! If anyone replies to you, you will receive an email to let you know
2) Did you add the menu to the form? I.e. Did you set the Form.MainMenuStrip Property to the menu?
"Thanks.
But i still have that problem with that specific form..Here is the code which i used for both projects.One is working,one is not."
private void set_menus() {
mnumain = new MainMenu();
MenuItem proc1 = new MenuItem("&Test Procedure");
proc1.MenuItems.Add(new MenuItem("&Before Pouring", new EventHandler(this.proc1BeforePouring_clicked)));
proc1.MenuItems.Add(new MenuItem("&After Pouring", new EventHandler(this.proc1AfterPouring_clicked)));
proc1.MenuItems.Add(new MenuItem("&Exit", new EventHandler(this.proc1Exit_clicked)));
this.Menu = mnumain;
}
private void proc1BeforePouring_clicked(object sender, EventArgs e)
{
}
private void proc1AfterPouring_clicked(object sender, EventArgs e)
{
}
private void proc1Exit_clicked(object sender, EventArgs e)
{
this.Close();
}
You need to add the menuitem to the menu...
proc1.MenuItems.Add(new MenuItem("&Exit", new EventHandler(this.proc1Exit_clicked)));
mnumain.MenuItems.Add(proc1);
this.Menu = mnumain;