Click here to Skip to main content
15,896,432 members
Home / Discussions / C#
   

C#

 
AnswerRe: Plz help me to go to a particular node in xml file Pin
Christian Graus12-Sep-07 18:39
protectorChristian Graus12-Sep-07 18:39 
AnswerRe: Plz help me to go to a particular node in xml file Pin
Jintal Patel12-Sep-07 19:15
Jintal Patel12-Sep-07 19:15 
AnswerRe: Plz help me to go to a particular node in xml file Pin
Nouman Bhatti12-Sep-07 19:27
Nouman Bhatti12-Sep-07 19:27 
AnswerRe: Plz help me to go to a particular node in xml file Pin
P_Elza12-Sep-07 21:52
P_Elza12-Sep-07 21:52 
QuestionSaving username and password Pin
C#Coudou12-Sep-07 15:33
C#Coudou12-Sep-07 15:33 
AnswerRe: Saving username and password Pin
Christian Graus12-Sep-07 15:50
protectorChristian Graus12-Sep-07 15:50 
QuestionReading data from a dataset with a checkedlistbox Pin
falles0112-Sep-07 15:28
falles0112-Sep-07 15:28 
AnswerRe: Reading data from a dataset with a checkedlistbox Pin
Christian Graus12-Sep-07 18:52
protectorChristian Graus12-Sep-07 18:52 
falles01 wrote:
for (i = 0; i <= (techSkillsCheckListBox2.Items.Count - 1); i++)


Why not

i < techSkillsCheckListBox2.Items.Count ?

Or even

foreach (CheckBox box in techSkillsCheckListBox2.Items) ?

This code is really broken. What you want to do, is fill a list with the items that are selected, then go through each check box and do something like

checkbox.Checked = (myListOfItems.Contains(theKEyForThisCheckbox));

Of course, I just invented some variables, assume the Tag of the checkbox contains the key value, so you can look it up. The code you're presenting does a nested loop, and just sets each box to be checked, over and over again.


Christian Graus - Microsoft MVP - C++

"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

GeneralRe: Reading data from a dataset with a checkedlistbox Pin
falles0112-Sep-07 19:00
falles0112-Sep-07 19:00 
GeneralRe: Reading data from a dataset with a checkedlistbox Pin
Christian Graus13-Sep-07 3:10
protectorChristian Graus13-Sep-07 3:10 
GeneralRe: Reading data from a dataset with a checkedlistbox Pin
falles0113-Sep-07 15:12
falles0113-Sep-07 15:12 
GeneralRe: Reading data from a dataset with a checkedlistbox Pin
falles0113-Sep-07 15:17
falles0113-Sep-07 15:17 
GeneralRe: Reading data from a dataset with a checkedlistbox Pin
falles0113-Sep-07 15:30
falles0113-Sep-07 15:30 
QuestionDrawing a line to a bitmap Pin
Klazen12-Sep-07 13:31
Klazen12-Sep-07 13:31 
AnswerRe: Drawing a line to a bitmap Pin
Christian Graus12-Sep-07 13:45
protectorChristian Graus12-Sep-07 13:45 
GeneralRe: Drawing a line to a bitmap Pin
Klazen12-Sep-07 14:12
Klazen12-Sep-07 14:12 
GeneralRe: Drawing a line to a bitmap Pin
Christian Graus12-Sep-07 14:28
protectorChristian Graus12-Sep-07 14:28 
QuestionThe "EGG" task Pin
Saikek12-Sep-07 11:16
Saikek12-Sep-07 11:16 
AnswerRe: The &amp;quot;EGG&amp;quot; task Pin
Brent Lamborn12-Sep-07 11:27
Brent Lamborn12-Sep-07 11:27 
AnswerRe: The "EGG" task Pin
Christian Graus12-Sep-07 13:47
protectorChristian Graus12-Sep-07 13:47 
QuestionPC - Ethernet - Ethernet/RS232 changer - µC Pin
suam11112-Sep-07 11:12
suam11112-Sep-07 11:12 
AnswerRe: PC - Ethernet - Ethernet/RS232 changer - µC Pin
Dave Kreskowiak12-Sep-07 13:33
mveDave Kreskowiak12-Sep-07 13:33 
AnswerRe: PC - Ethernet - Ethernet/RS232 changer Pin
Luc Pattyn12-Sep-07 14:31
sitebuilderLuc Pattyn12-Sep-07 14:31 
GeneralRe: PC - Ethernet - Ethernet/RS232 changer - µC Pin
Dave Kreskowiak12-Sep-07 15:01
mveDave Kreskowiak12-Sep-07 15:01 
QuestionTopMost visible and BottomMost visible rows in DataGrid Pin
zaboboa12-Sep-07 10:26
zaboboa12-Sep-07 10:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.