ListBox 에서 선택된 다중항목 지우기

Author: zemna
Date: April 17, 2021
Share this:

[code lang="vbnet"] With ListBox1 ' If we have some selected items. If .SelectedIndices.Count > 0 Then ' Loop through selected indicies to get the index number of ' the selected item. ' We need to cound back through the list to avoid reindexing the ' the list as we go. For i As Integer = .SelectedIndices.Count - 1 To 0 Step -1 ' Remove the item. .Items.RemoveAt(.SelectedIndices(i)) Next End If End With [/code]

Share this:

Leave a Reply

Your email address will not be published. Required fields are marked *

Let's connect and create
something awesome together!
2023 - Copyright, All Rights Reserved, Made by ZEMNA.NET with ❤️
crossmenu linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram