How to check which toolbarmenuitem is clicked from another windows form
Hi,
Could anybody help me please how to check which toolbarmenuitem is clicked from another windows form? I have this code in the second form, from where I want to check which toolbarmenuitem in the first form is clicked (Dogovor is the second form name):
private void crystalReportViewer1_Load(object sender, EventArgs e)
{
Dogovor dog = (Dogovor)Application.OpenForms["Dogovor"];
System.Windows.Forms.ToolStripMenuItem dgak = dog.aktivniDogovoriToolStripMenuItem;
if (dgak.Click += new EventHandler(aktivniDogovoriToolStripMenuItem_Click))
{
....
}
}
but it is not correct. I tried with if(dgak.Selected) but it was not ok again.
Thanks in advance.