TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Nel
NA
716
1.1m
How to check which toolbarmenuitem is clicked from another windows form
Mar 6 2012 8:25 AM
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.
Reply
Answers (
2
)
individual options for each cell in DataGridViewComboBoxColumn
Simplest way of adding a ',' to each line of a rich text box