473,399 Members | 3,603 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,399 software developers and data experts.

Checked List Box (CheckedState)

Hey All,

I want to find whether my first item within my CheckListBox is in a checked
or unchecked state. I tried the following but it did not work, Can anyone
help.

If CkListBoxRoutines.Items.Item(0) = CheckedState.Checked Then
messagebox("Marc")
End If

Any ideas how to do this?

Cheers

Nov 21 '05 #1
2 1478
took a little searching but it's

If ChkListBoxRoutines.GetItemCheckedState(0) = checkState.Checked Then

msgbox

endif

"marcmc" wrote:
Hey All,

I want to find whether my first item within my CheckListBox is in a checked
or unchecked state. I tried the following but it did not work, Can anyone
help.

If CkListBoxRoutines.Items.Item(0) = CheckedState.Checked Then
messagebox("Marc")
End If

Any ideas how to do this?

Cheers

Nov 21 '05 #2
"marcmc" <ma****@discussions.microsoft.com> schrieb
I want to find whether my first item within my CheckListBox is in a
checked or unchecked state. I tried the following but it did not
work, Can anyone help.

If CkListBoxRoutines.Items.Item(0) = CheckedState.Checked Then
messagebox("Marc")
End If

Any ideas how to do this?


if CkListBoxRoutines.getitemchecked(0) then
Armin
Nov 21 '05 #3

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

Similar topics

1
by: Carlos Magalhaes | last post by:
Hi all, I am doing some work with a checked list box on a windows form. I bind a dataset to the checked list box and am setting a display member and a value member. I can loop through the...
26
by: Simon Jefferies | last post by:
Hello, I am trying to add an item to a checked list box, like: clbList.Items.add("Hello",true) I get an error back: Run-time exception thrown: System.ArgumentOutOfRangeException -...
1
by: Dennis | last post by:
I have a checked list box and am trying to use the SetItemCheck method as follows: mylistbox.SetItemChecked(indextoset, True) It seems to have no effect and the display does not show the box...
1
by: Jack | last post by:
Hello, I have a treeview with checkboxes and I want to get the Text of each checked item into an arraylist or something. Thanks, Jack
4
by: Alexander Mueller | last post by:
Hi all, in a CheckedListBox there are afaics two members that change the checked-flag for an item i.e. SetItemChecked and SetItemCheckState. In the online-help there is a remark that...
10
by: dm1608 | last post by:
Hi, all. I have a requirement for one of my programs to have a "Checked Listbox" that contains a list of all my local/remote drives. I woudl like users to click one or more drives that I need...
1
by: sherifffruitfly | last post by:
Hi, I've got a checked list box, and a "go' button on the form. Each item in the checked list box is associated with a program (say notepad, calc, etc.). When the user clicks "go", every item...
0
by: cyberdawg999 | last post by:
Greetings all in ASP land I have overcome one obstacle that took me 2 weeks to overcome and I did it!!!!! I am so elated!! thank you to all who invested their time and energy towards helping me...
0
by: Soulless | last post by:
Hi, I have reason to need to use a checked list box. The list box contents will be filled with filenames in a directory. These values will change. I need the ability to be able to select a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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
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
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,...
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...

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.