Click here to Skip to main content
16,006,535 members
Home / Discussions / C#
   

C#

 
GeneralRe: Continous events from a button click Pin
DavidNohejl11-Sep-07 21:56
DavidNohejl11-Sep-07 21:56 
GeneralRe: Continous events from a button click Pin
Ermak8611-Sep-07 22:25
Ermak8611-Sep-07 22:25 
GeneralRe: Continous events from a button click Pin
DavidNohejl12-Sep-07 0:52
DavidNohejl12-Sep-07 0:52 
GeneralRe: Continous events from a button click Pin
Brady Kelly11-Sep-07 21:56
Brady Kelly11-Sep-07 21:56 
AnswerRe: System.Xml.XmlException Pin
Sandeep Akhare11-Sep-07 20:28
Sandeep Akhare11-Sep-07 20:28 
GeneralRe: System.Xml.XmlException Pin
Malcolm Smart11-Sep-07 21:04
Malcolm Smart11-Sep-07 21:04 
QuestionComparing a Tableadapter to checkedlistbox items Pin
falles0111-Sep-07 19:10
falles0111-Sep-07 19:10 
AnswerRe: Comparing a Tableadapter to checkedlistbox items Pin
Malcolm Smart11-Sep-07 21:10
Malcolm Smart11-Sep-07 21:10 
falles01 wrote:
if (i == j)


I think your logic is wrong. All you are doing is comparing two numbers - the index of the item in the collection. Imagine techSkillsCheckListBox2.Items has 4 items and this.dataSet1.TechnicalSkills has 5 items. Your loop will look like
<br />
0 = 0 : true<br />
0 = 1 : false<br />
0 = 2 : false<br />
0 = 3 : false<br />
0 = 4 : false<br />
<br />
1 = 0 : false<br />
1 = 1 : true<br />
1 = 2 : false<br />
1 = 3 : false<br />
1 = 4 : false<br />
<br />
<br />
2 = 0 : false<br />
2 = 1 : false<br />
2 = 2 : true<br />
2 = 3 : false<br />
2 = 4 : false<br />
<br />
and so on
, which is not what you want. You need to iterate through the dateset, retrieve the identifier of the skill, which should match an identifier on the check box, and then set the check box.

Step through with a debugger and you will see what's happening.


"More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF


"I haven't spoken to my wife now for 48 hours. I don't like to interrupt her.

GeneralRe: Comparing a Tableadapter to checkedlistbox items Pin
falles0111-Sep-07 21:19
falles0111-Sep-07 21:19 
GeneralRe: Comparing a Tableadapter to checkedlistbox items Pin
Malcolm Smart11-Sep-07 23:21
Malcolm Smart11-Sep-07 23:21 
GeneralRe: Comparing a Tableadapter to checkedlistbox items Pin
falles0112-Sep-07 14:27
falles0112-Sep-07 14:27 
GeneralRe: Comparing a Tableadapter to checkedlistbox items Pin
Malcolm Smart12-Sep-07 20:41
Malcolm Smart12-Sep-07 20:41 
GeneralRe: Comparing a Tableadapter to checkedlistbox items Pin
falles0112-Sep-07 20:46
falles0112-Sep-07 20:46 
GeneralRe: Comparing a Tableadapter to checkedlistbox items Pin
falles0112-Sep-07 21:35
falles0112-Sep-07 21:35 
GeneralRe: Comparing a Tableadapter to checkedlistbox items Pin
falles0113-Sep-07 15:36
falles0113-Sep-07 15:36 
QuestionC# Pin
ramyanaidu11-Sep-07 18:37
ramyanaidu11-Sep-07 18:37 
AnswerRe: C# Pin
Sathesh Sakthivel11-Sep-07 18:51
Sathesh Sakthivel11-Sep-07 18:51 
AnswerRe: C# Pin
I.explore.code11-Sep-07 19:09
I.explore.code11-Sep-07 19:09 
AnswerRe: C# Pin
Pete O'Hanlon11-Sep-07 22:17
mvePete O'Hanlon11-Sep-07 22:17 
QuestionHow to disable blinking cursor in my Form ? Pin
Yanshof11-Sep-07 18:10
Yanshof11-Sep-07 18:10 
AnswerRe: How to disable blinking cursor in my Form ? Pin
falles0111-Sep-07 19:23
falles0111-Sep-07 19:23 
AnswerRe: How to disable blinking cursor in my Form ? Pin
falles0111-Sep-07 19:51
falles0111-Sep-07 19:51 
GeneralRe: How to disable blinking cursor in my Form ? Pin
Yanshof11-Sep-07 19:55
Yanshof11-Sep-07 19:55 
QuestionC# accessing non.NET libraries Pin
zaiyatul hijah11-Sep-07 16:38
zaiyatul hijah11-Sep-07 16:38 
AnswerRe: C# accessing non.NET libraries Pin
Malcolm Smart11-Sep-07 20:58
Malcolm Smart11-Sep-07 20:58 

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.