Sunday 23 February 2014

Which one of the following statements represents the correct syntax to associate an event handler with a UI element?

Which one of the following statements represents the correct syntax to associate an event handler with a UI element?
1. <ControlName>.<EventName>+=<EventHandlerName>;
2. <ControlName>(<EventName>)+=<EventHandlerName>;
3. <EventHandlerName>=<ControlName>.<EventName>;

4. <EventHandlerName>=<ControlName>(<EventName>);

Solution:
1. <ControlName>.<EventName>+=<EventHandlerName>;

No comments:

Post a Comment