Blue Theme Orange Theme Green Theme Red Theme
 
6 Months Free & No Setup Fees ASP.NET Hosting!
Home | Forums | ASP.NET 2.0 Tutorials | Web Services | How Do I...? | Class Browser | WPF Quick Starts | Advertise with Us
 | Consulting  
Submit an Article Submit a Blog 
Search :       Advanced Search »
Home » Blogs Home » Blog Detail

How to use multiple checked items from the CheckedListBox?

 by Ghanashyam Nayak on Feb 01, 2012

In this code you can know that how to retrieve the multiple checked items from the CheckedListBox & store into the listbox...
Comments: 0 Views: 660 Printable Version 

using System;

using System.Windows.Forms;

 

namespace Blog

{

    public partial class Form1 : Form

    {

        public Form1()

        {

            InitializeComponent();

        }

 

        private void myButton_Click(object sender, EventArgs e)

        {

            //First of clear all previous items from the Listbox otherwise it will append the items...

            myListBox.Items.Clear();

 

            //one by one it will fetch the items from the checked items from the Checkedlistbox..

            foreach (var item in myCheckedListBox.CheckedItems )

            {

                //Add the retrieved item into the Listbox...

                myListBox.Items.Add(item);

            }

        }

    }

}



See Below Image :


Result.jpg

Comment Request!
Thank you for reading this post. Please post your feedback, question, or comments about this post Here.
 
What do you say about this post? Post a comment here
*Title:
*Comment:
 
Comments not available.
6 Months Free & No Setup Fees ASP.NET Hosting!
Become a Sponsor

 Blogger's Profile
Age: Not Available
Location:
Title: Student
Joined: Mar 11, 2011
Education: Masters Degree
 More Blogs from this Blogger
No record available
 Latest Blogs
[Video] OnClose Handler
[Video] Storing and Loading the Window and Toolbar position
The Euclidean Algorithm
Swapping Exe Process
How Exe file is Generated by VS2005 C++ Project?
What is Exe
Header files: Multiple Inclusion problem - Solution B
Header files: Multiple Inclusion problem - Solution A
Header files: Multiple Inclusion problem - Reason
Header files: Multiple Inclusion problem
View all »
 Latest Jobs
More ... 
 Latest Interview Questions
More ... 
6 Months Free & No Setup Fees ASP.NET Hosting!
 © 2012  contents copyright of their authors. Rest everything copyright Mindcracker. All rights reserved.