473,408 Members | 1,762 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

checkedListBox - new item checked

Hello,

When I am adding things to my checkedListBox - how do I check an item as it
is added?
In other words I loop through an array adding text to the checkedListBox and
when the corresponding value in that array for that text is true, a check
mark is added.

I cant find any examples on how to do this.

Thanks,
Grant
Nov 16 '05 #1
2 2284
Hi Grant,

Do you mean

checkedListBox1.Items.Add(newitem, CheckState.Checked); // item is marked as checked
Happy coding!
Morten Wennevik [C# MVP]
Nov 16 '05 #2
Thanks Morten. I should look a little closer at the intellisense next time.

Cheers,
Grant

"Morten Wennevik" <Mo************@hotmail.com> wrote in message
news:opr74ustdrklbvpo@morten_x.edunord...
Hi Grant,

Do you mean

checkedListBox1.Items.Add(newitem, CheckState.Checked); // item is marked
as checked
Happy coding!
Morten Wennevik [C# MVP]

Nov 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Dave Veeneman | last post by:
Is there a simple way to check the status of an item as checked or unchecked in a CheckedListBox? I need to cycle through a CheckedListBox and take one of two actions for each item, depending on...
2
by: CC | last post by:
Hi, We are populating a CheckedListBox from a database. Based on a selection by the user, the CheckedListBox either contains ALL possible members of a set, or a subset of possible members. The...
2
by: Manuel Canas | last post by:
Hi there, I'm having this dilema with a checkedlistbox. I have an array of items in there, what I want to accomplish is the following; The user could check all the items in the...
1
by: Manuel Canas | last post by:
Hi There, I'm looking for ideas, advices, hints on how to accomplish the following; On a CheckedListBox I have a list of names or whatever, the behavior that I want to accomplish is this; the...
4
by: Moondog | last post by:
Simple question: How can I test if an item has been checked in a CheckedListBox? My scenario is if a user clicks on my CheckedListBox, and the item has not been checked yet, do some event, if...
3
by: Jerry Spence1 | last post by:
I am trying to capture when an item in the CheckedListBox occurs. I am using the event: CheckedListBox1_ItemCheck(ByVal sender As Object, ByVal e As System.Windows.Forms.ItemCheckEventArgs)...
5
by: mabond | last post by:
Hi Can't believe I've not been able to find the answer to this in the on-line help. I have a CheckedListBox which, via a timer control, is populated with the names of files in a network...
1
by: engloon | last post by:
hi guys, below is the code i wrote. but it only return the first checked item even i have 2 items checked. please help on this problem. any help would be appreciated, thanks. Dim indexchecked...
6
by: painkiller | last post by:
language: vb.net environment: windows forms .net : v1.1 i am having a checkedlistbox control that display document category such as text, image, video, audio etc. these values are coming from...
2
by: zubair1 | last post by:
Hello, i'm in a bit of problem here :( I've been using Checkboxes on my app - but it has been horrible, since my app has alot of checkboxes - over 20-30. But i decided to use checkedlistbox...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.