dotnet-Snippets.com
Snippets: 73 | Registered User: 84 | Visitors online: 36
Main Menu

Home
Random Snippet
FAQs
Contact Us
Imprint
RSS Feeds

Rss All languages
Rss C#
Rss VB.NET
Rss C++
Rss J#
Rss ASP.NET
Jobs

dotnet Jobs
Google Ads

Sri Lanka .NET 
                Forum Member
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:
No results available

Poor Excellent
1 2 3 4 5 6 7 8 9 10
Sign in to vote for this snippet.

Comments:
(Please log in to write an comment.)