In a project for a ComboBox class I have a problem when selecting the last item in a ScrollView.
The ScrollView Panel is filled only with Labels having a common lblItem_Click event and the index as the Tag property.
When I click on the last item, the lblItem_Click event is raised but the Sender object is not the last item but the previous one that was selected.
It works OK for all others.
Attached a test project.
The ScrollView Panel is filled only with Labels having a common lblItem_Click event and the index as the Tag property.
When I click on the last item, the lblItem_Click event is raised but the Sender object is not the last item but the previous one that was selected.
It works OK for all others.
Attached a test project.