Home > DeveloperSection > Articles > Event Handling in CSharp .NET

Event Handling in CSharp .NET


C# C# 
Ratings:
0 Comment(s)
 2566  View(s)
Rate this:

Event Handling in C#.Net

Here I am going to show how to handle events.

Timer tick event

//adding tick event to timer

tm.Tick += new EventHandler(tm_Tick);3

//code for timer tick event.

private void tm_Tick(object sender, EventArgs e)

        {

            this.BackColor = Color.Blue;

            tm.Enabled = false;

        }

 


Don't want to miss updates? Please click the below button!

Follow MindStick