Events handling

While in the process of development of apps/software in any IDE, it is necessary to understand about the events and event handling. One cannot start developing in GUI until and unless he/she understands about the events and handling them. So what are events? Events are hard to be defined but it can be clearly understood by the help of example. The mouse clicking, double clicking, hovering, exiting, text changing, value changing etc are the events handlers. In such case, some tasks are performed. like what things are to be done when the mouse is clicked. In fact, one should know how to handle when such events are called. Some codes must be done in order to perform some tasks when the events are done. Like if have a button and on clicking some message must be displayed, in such case, on the click event of button I have to write a code to display the message. It is just like the function which is called with some arguments passed and within that function the codes is written. An example of event handling is somewhat like this:

private void Button_Click_1(object sender, RoutedEventArgs e)
           //codes to handle the click event

The thing is nothing but the function which is called when the clicking is done in the button. And all those codes inside the function gets executed.

Leave a Reply

Your email address will not be published. Required fields are marked *

How to whitelist website on AdBlocker?

How to whitelist website on AdBlocker?

  1. 1 Click on the AdBlock Plus icon on the top right corner of your browser
  2. 2 Click on "Enabled on this site" from the AdBlock Plus option
  3. 3 Refresh the page and start browsing the site
%d bloggers like this: