I have a listBox1 object and it contains some items. I have a button to move selected item up and another to move selected item down. What should the code be to the two buttons?
C# – How to move item in listBox up and down
clistboxnetwinforms
Related Topic
- C# – Should ‘using’ directives be inside or outside the namespace
- C# – Catch multiple exceptions at once
- C# – Case insensitive ‘Contains(string)’
- C# – What do two question marks together mean in C#
- C# – Proper use of the IDisposable interface
- C# – How to update the GUI from another thread
- C# – a NullReferenceException, and how to fix it
- Scala: list.flatten: no implicit argument matching parameter type (Any) = > Iterable[Any] was found
Best Answer
UPD 2020-03-24: Extension class for simple reuse and it also supports CheckedListBox (if CheckedListBox is not needed for you, please remove appropriate lines of code). Thanks @dognose and @Chad