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
Fiona
NA
2
0
How to dispatch Click event on Label?
Jun 10 2009 11:13 AM
Hi,
I have a very simple question.
In a Windows Form, I have a series of Labels which have several Event Handlers defined.
When a button is clicked, I would like to loop through all these Labels and dispatch the Click event on each.
Now, if they were buttons, I could simply call label.PerformClick(), but this doesn't exist for Labels (and, no, I can't change them to buttons!).
So, how do I dispatch the Click event (or any of the other built-in events) for a control?
(From an ActionScript perspective, this would be simply label.dispatchEvent(new Event(MouseEvent.CLICK)) )
Thanks for your help.
Reply
Answers (
2
)
How to trace country by IP Address
How to get datas from a cloumn in a database(sql) and store in in array?