Click here to Skip to main content
15,895,538 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
In prior versions of VB I was able to get the properties, open the items and change as I needed. To insert I would go to the end of a particular item and hit enter and enter a new item.

In VB.2017 I can only add items at the bottom or delete items. I cannot go to the end of an item to hit enter. The entire item row is highlighted and hitting enter deletes it.

I cannot even copy all of them to copy and paste. Ctl A does nothing.

What I have tried:

Everything I can think so but that's not a lot.
Posted
Updated 16-Feb-19 1:12am
v2
Comments
CHill60 18-Feb-19 3:47am    
Isn't there a pair of arrows that allows you to move items up and down?
QuickBooksDev 18-Feb-19 6:18am    
Of course NOT. There is only OK and Cancel.

I have found on another forum that the source editing of the CheckedListBox has changed.

From my testing the only way to insert or reorder the items is via changing the AddRange designer code which is not a good way and prone to error. Otherwise you have to delete all the items to where you want to insert the one one and re-enter all the others.

e.g.
Me.lstOptSettingsPremier.Items.AddRange(New Object() {"Lookup Job if No Name", "Lookup Item by Manuf Part No.", "Lookup Item by Description", "Qty is blank if not numeric", "Turn Off Email if Error", "Lookup Account as sub-account", "Verify Purchase Accounts Immediately"})

I think Microsoft screwed up on this.
CHill60 18-Feb-19 6:47am    
Or do it programmatically?
QuickBooksDev 18-Feb-19 6:53am    
Or course I know that. But that is not a good solutions as I stated before. We have dozens of apps with dozens of items in multiple CheckedListBoxes.

We should be allowed to edit them as before. I was hoping that there was some tools option that would change the editing behavior to the way it was.
CHill60 18-Feb-19 7:21am    
Re programatically ... "But that is not a good solutions" ... I think know it's a far better solution than hard-coding lists into programs! These things should be in config or database

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900