❔ Windows Forms different controls but same event doing different code?

private void OnSecondsChange(object sender, EventArgs e)
{
    textBoxUpTime.Text += $"{sender} fired out"; // somehow distinguish the sender and behave differently later in the code
}
I was wondering if there is a way I can link one method to multiple controls events (such as OnClick) and depending on which element fired the event do something different?
For example there are 4 buttons and each has the same OnClick event method linked but I want the code for each button behave slightly different
Was this page helpful?