An object-oriented programming language developed by Microsoft that can be used in .NET.
Thank you for reaching out.
For this scenario, we recommend creating a single data object that contains both the item's name and its associated image. After the user selects the required items from the two groups, those items can be combined into a single collection and sorted alphabetically.
This approach keeps the item name and image together, ensuring that the correct image remains associated with the correct item even after sorting. It also simplifies dynamically creating the required labels and picture boxes when the tab is generated.
If you plan to reuse the same layout for multiple items, you may also consider creating a custom UserControl containing a Label and PictureBox, and then creating one instance for each item in the sorted collection.
Please let us know if you require any further assistance, we’re happy to help. If you found this information useful, kindly mark this as "Accept Answer". So that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.