M
Mark Lawton
Using C# in Visual Studio 2008. I have added a menustrip with some
menu options to a form - but I cannot find the event handlers for them
anywhere. I have found the tool's setup code, which adds the created
menu items to the tool, and which is followed by:
private System.Windows.Forms.MenuStrip menuStrip1;
private System.Windows.Forms.ToolStripMenuItem
newTimeRecordToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem
reportToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem
byProjectToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem
byDeveloperToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem
maintainToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem
developersToolStripMenuItem;
Here is the form code:
namespace sandpit
{
public partial class Outer : Form
{
public Outer()
{
InitializeComponent();
}
private void Outer_Load(object sender, EventArgs e)
{
}
}
}
Where do I add code to handle the event of of an option being
selected, please?
It ought to be simple - but after an hour of searching books and the
WWW, I am still none the wiser.
menu options to a form - but I cannot find the event handlers for them
anywhere. I have found the tool's setup code, which adds the created
menu items to the tool, and which is followed by:
private System.Windows.Forms.MenuStrip menuStrip1;
private System.Windows.Forms.ToolStripMenuItem
newTimeRecordToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem
reportToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem
byProjectToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem
byDeveloperToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem
maintainToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem
developersToolStripMenuItem;
Here is the form code:
namespace sandpit
{
public partial class Outer : Form
{
public Outer()
{
InitializeComponent();
}
private void Outer_Load(object sender, EventArgs e)
{
}
}
}
Where do I add code to handle the event of of an option being
selected, please?
It ought to be simple - but after an hour of searching books and the
WWW, I am still none the wiser.