Getting button ID from flowlayoutpanel
I have a flowlayoutpanel which is populated with image buttons from an array. Is it possible to access some sort of 'button id' when it is clicked, that corresponds to it's place in the array?
This wasn't a problem at first because all my jpgs were in the same directory so I could grab the ctrl.text and identify the file I wanted from that. However my script now implements a getFilesRecursive function and I can't tell where each button/file comes from, but the array would tell me this.