I have a new application like manager for cafe and I create an User Control for my application. My User Control's name is TableButton. It include Picture Box and Label and have three properties( ID, Name, Status).
When I add it in my form (with loop) and click it, it send to event data I do not want ( object sender is Picture Box or label depending on whether I click on a Picture Box or label. and I can't get data(ID, Name, Status). I want when I click anywhere in my TableButton then object sender is TableButton and I can get data from it.
So what's the solution for that? My English is not good so maybe my article is wrong and difficult to understand. I hope you will skip this inconvenience. Thank you so much.
internal(oepublic) ! By default they all areprivateso you can't access them from outside. Not sure what you mean by those properties, though..