|
Removes selected ListBox items.
Author:
Jan Welker
|
Programming Language:
C# |
Rating:
not yet rated
|
Views:
1345 |
Description:
Removes the selected items from the given list box.
|
|
| C# |
1
2
3
4
5
6
7
8
9
10
|
/// <summary>
/// Removes the selected items from the given list box.
/// </summary>
/// <param name="lb">The lb.</param>
private void RemoveSelectedItemsFromListBox(ListBox lb)
{
while (lb.SelectedItems.Count > 0)
lb.Items.Remove(lb.SelectedItem);
}
|
|
|
This Snippets could be interesting for you:
|
|
|
|
|
|
|
|
Comments:
(Please log in to write an comment.)
|
|
|