JackW9653
asked on
Getting the index of the last item in a listbox
Hello Experts,
I have several listboxes in a Win forms app that get filled from different database tables. I have given the users the ability to add to these lists by entering text into a text box and clicking a command button which does a simple insert and then a select to repopulate the list. The new item will appear at the bottom of the list (the lists are not sorted). What I want to do is highlight the new item as the list is refreshed from the database. I was planning on using the selected index method to highlight it but i need to know the index.
Thanks,
Jack
I have several listboxes in a Win forms app that get filled from different database tables. I have given the users the ability to add to these lists by entering text into a text box and clicking a command button which does a simple insert and then a select to repopulate the list. The new item will appear at the bottom of the list (the lists are not sorted). What I want to do is highlight the new item as the list is refreshed from the database. I was planning on using the selected index method to highlight it but i need to know the index.
Thanks,
Jack
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER