We have an event handler called MyEvent and we want to link the click event of control, MyButton, to use MyEvent, what is the code that will like them together?

We have an event handler called MyEvent and we want to link the click event of control, MyButton, to use MyEvent, what is the code that will like them together?

If we have an event handler called MyEvent and we want to link the click event of control, MyButton, to use MyEvent, Then code will be:-
control.Click += new EventHandler(MyEvent);

By:kamal
Date:2015-10-10 00:00:00

Post Your Answers


User Email:

User Name:
Answers:

Related C Links

C interview questions and answers for experienced and fresher