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.
How to check which toolbarmenuitem is clicked from another windows form
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

VulpesRank #55 · 29.2K reputationPosted Mar 6, 2012, 4:41 AM EST
NelRank #2,060 · 702 reputationPosted Mar 6, 2012, 9:05 PM EST