I have a list box with items like A B C D E.
I also have two buttons Move UP and Move Down with it.
I have already made their properties false in the property window (F4).
When a user selects B or all the items below then my Move Up button should get enabled. It should be disabled for A item
In the same way my Move Down button should be enabled when the user selects D or all the items above it. It should be disabled for E.
Can you please provide me the right part of code to be written here.
Thanks….
I am doing a similar thing in my app. It also handles selection of multiple items and also checks if the multiple items that are selected are continuous or not.
Here’s the code: