determining which items in a checked list box have been checked
I have a checked list box with an unknown number of items some of which may have been checked. I need to know how to determine which of the items have been checked. For purposes of discussion, assume that my checked list box is called myCheckedListBox.
In theory, I need to scroll through the list as in
for (int x = 0; int < myCheckedListBox.Items.Count; x++)
// what goes here to check each index/item = x to see if it's been checked?
I'm not at all interested in displaying anything in a message box, or anywhere else. The functionality I need has to go item by item through the checked list and if any item is checked, then some other action has to be taken. I'm thinking of some syntax like: if(myCheckedListBox.Index[x].Checked == true)
I know this is not the correct C# syntax - but if you read my intention correctly, you'll understand what I'm trying to do, correctly! :)
Need some help with this Array. I am trying to get the sum of the even numbers and the sum of the odd numbers using a for each loop. I know the answers to what I am trying to achive are sum of even = 84 and the sum of ...
I have a 2d matrix with dimension (3, n) called A, I want to calculate the normalization and cross product of two arrays (b,z) (see the code please) for each column (for the first column, then the second one and so on).
the function that I created to find the ...