+ 1

Windows form application problem (c#)

Lets say i have 15 buttons, and i want to write a function that works for all the buttons if one of them is pressed without making 15 Click functions,it looks bad and it dosn't feel professional. How can i do this?how can i make one function that will be for all buttons BUT will work on each button as an individual,for example, one function for all buttons that if i click it ,it will make the button i pressed dissapear or to disply the name of the button i clicked.

26th Sep 2018, 9:51 PM
gil gil
1 Odpowiedź
+ 1
thanks ODLNT ,this really helps
27th Sep 2018, 12:56 AM
gil gil