Here is the source for C# Programmer (Beginners). It is about windows controls.
Adding and Retrieving items from listbox and check list box using with or without database.
The attached source code shows how to add and retrieve items of Windows Forms ListBox and CheckListBox controls.
Here is the source for C# Programmer (Beginners). It is about windows controls.
Adding and Retrieving items from listbox and check list box using with or without database.
Join the conversation! Your thoughts help the community grow.
Join to leave a comment
Members earn 10 SHARP for a comment, 10 SHARP for a reaction, and 1,000 SHARP for every article they publish.
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegisterMembers onlyFeatured eBookClaude for AI-Native BuildersDownload nowWrite an article and earn +1,000 SHARP when it is approved.
Write an article
Niaj KhanPosted Sep 11, 2010, 4:45 PM EDT
Dear Gautam, The aforesaid sample code for retriving items from the checked list box shows retrivied items as " System.Data.DataRowView" not the same as the checked items. Plz see and advise.
MeshaPosted May 25, 2010, 6:15 AM EDT
Thanks alot but i want to know how to make the value of the checklistbox item equals the primarykey of that tabel and store the primarykey (value of items) in the another table? for example ( the users tabel (id,username,password) , the privileges tabel ( pri_num,privilege),the joining tabel user_privileges (id,pri_num) .what i want is that the privilege is viewed in checklistbox and after that the value of it pri_num is stored in user_privileges tabel) thank you for your cooprative