I am currently coding a file browser in C# and I've never used C# before. I'm trying to make a list of files that will become active (ie: change skin) when I click on one. The problem is that I have no idea how to do so.
Added buttons for each file in the directory inside loop and change skin to look like labels.
Buttons will change skin when clicked on.
I think I should be writing an event handler but I don't know how to add an event handler to a button that is declared inside a loop. Help please?