Click here to Skip to main content
15,921,622 members
Home / Discussions / C#
   

C#

 
AnswerRe: Continous events from a button click Pin
Malcolm Smart11-Sep-07 21:02
Malcolm Smart11-Sep-07 21:02 
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 
:(sigh:Hi Everyone,

Okay in the past two weeks I have learnt so much and I'm starting to work things out on my own. However even this one is tricky for me.
I am trying to automatically check checkedlistboxes based on data in the database.
I know I have to compare the dataset tableadapter to items in the ckedlistbox and then tick them if they match the ID. But how? I have created a join table aswell with EmpID and TechSkillsID so that people can tick multiple skills and they will be saved in there. Even though it isn't working yet. and yes the foreign keys are set up correctly. My code doesn't tick anything.

This is my code.
[code]
sql = "Select t.ProgLanguagesDatabase,e.EmployeeID,e.TechnicalSkillsID from TechnicalSkills t, employees e where t.TechnicalSkillsID = e.TechnicalSkillsID and e.EmployeeID = '" + FirstnameText.Text.ToString() + "'";



for (int i = 0; i < techSkillsCheckListBox2.Items.Count; i++)
{
for (int j = 0; j < this.dataSet1.TechnicalSkills.Count;j++)
{

if (i == j)
{
techSkillsCheckListBox2.SetItemChecked(i, true);
}
}


Thank you so much

Sianny (aka Sharny)
AnswerRe: Comparing a Tableadapter to checkedlistbox items Pin
Malcolm Smart11-Sep-07 21:10
Malcolm Smart11-Sep-07 21:10 
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 

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.