I have created a user control which contains profile pix, Name, employee No, Branch (similar to contact card). On a form i have placed a flowlayoutview and wanted to display the user control for every row on the table name users.
I didn't drag and drop the user control in the flowlayoutview instead used the above code to display them in the flowlayoutview. (UserLst1 uList = new UserLst1(); uList.Name = "userlst11" + i;)
And it works, displays all the users details in the user control for each row.
Now the problem is; i need to create a click event on the user control so that the related user control id is populated to textBox1.
The User Control --> uList.Name = "userlst11" + i;
count is row number in table users
How do i create Click Event for each User Control (ulist.Name) .
the issue I face is, the user control name on increment which is uList.Name = "userlst11" + i;. where do I place the click event. I want click event for user control (ulist).