473,486 Members | 2,181 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Advice on a CheckedListBox Behavior.

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 first item on the Checkedlistbox should be
checked, I can do this alreay this is not the problem I'm having. what I
want is

If ItemIndex0 = Checked and All Other Items are False Then
firstItem = should remain Checked
If itemIndex10 = Unchecked and if at least one other Item = Checked
Then
itemIndex10 = Checked
If itemIndex10 = Checked and at least one other item =
Checked Then
itemIndex10 = Unchecked
If itemIndex10 = Checked and All Other Items =
Unchecked Then
itemIndex10 = should remain Checked
End If
End If
End if
End If

Any Ideas, Advices on how to accomplish this one?

Thanks Everyone,

Manuel
Nov 20 '05 #1
1 1115
Thanks guys, figured it out on my own.
"Manuel Canas" <mc*****@hotmail.com> wrote in message
news:BKUPc.24871$hw6.2921@edtnps84...
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 first item on the Checkedlistbox should be
checked, I can do this alreay this is not the problem I'm having. what I
want is

If ItemIndex0 = Checked and All Other Items are False Then
firstItem = should remain Checked
If itemIndex10 = Unchecked and if at least one other Item = Checked Then
itemIndex10 = Checked
If itemIndex10 = Checked and at least one other item =
Checked Then
itemIndex10 = Unchecked
If itemIndex10 = Checked and All Other Items =
Unchecked Then
itemIndex10 = should remain Checked
End If
End If
End if
End If

Any Ideas, Advices on how to accomplish this one?

Thanks Everyone,

Manuel

Nov 20 '05 #2

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

Similar topics

4
3723
by: Reza | last post by:
Hi, I want to check one of the memebrs of a checkedListbox based on its value. I 'm getting a number(say 1355) from another control and based on that number I want to check an item which its...
4
3773
by: Matthew | last post by:
Hi, I am using a checkedlistbox on a windows form and binding it to a collection of classes. clbAliases is the checkedlistbox control selectedplace is a class with property placealiases.This...
2
2401
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...
8
1780
by: Derek Martin | last post by:
Here is some code that I need help with please: Dim result As New ArrayList Try For i = 0 To objecttest1.PersonList.person_returnnumber - 1 result =...
2
2269
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...
9
8484
by: Capt_Ron | last post by:
Hello, I would like to set the value of the item in the checked list box. I have a datareader that has 2 columns. PK and TEXT I want the TEXT as the Item and the PK as the Value. I can not...
0
1689
by: Terry Olsen | last post by:
Dim dirs() as string = Directory.GetDirectories(MyPath) CheckedListBox.DataSource = dirs CheckedListBox.Update For I as Integer = 0 To CheckedListBox.Items.Count - 1...
5
6836
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...
6
6916
by: Steve Teeples | last post by:
Can someone show me an example of how to place a "CheckedListBox" property within a PropertyGrid? -- ----------- Thanks, Steve
0
7175
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...
1
6842
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
7330
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
5434
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4865
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
3070
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3070
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1378
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
262
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.