Click here to Skip to main content
15,891,248 members
Home / Discussions / C#
   

C#

 
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 
Okay I was wrong. I didn't work it out. I'm still trying to save multiple skills and I thought it was saving them but it was actually saving the number of the index instead of the ID. Here is what I'm using. I still need the answer of how to get the id of the ticked items and then store it.

<br />
string sql = "SELECT t.TechnicalSkillsID from TechnicalSkills where TechnicalSkillsID = '" + techSkillsCheckListBox2.CheckedItems.ToString() + "'";<br />
                        if (techSkillsCheckListBox2.CheckedItems.Count != 0)<br />
                           {<br />
                             <br />
                            <br />
<br />
                            for (int x = 0; x <= techSkillsCheckListBox2.CheckedItems.Count -1; x++)<br />
                                foreach (int i in techSkillsCheckListBox2.CheckedIndices)<br />
                                                              {<br />
<br />
                                    sql = "Insert into EmpSkills(EmployeeID,TechnicalSkillsID) values ('" + this.EmployeeID + "','" + techSkillsCheckListBox2.CheckedIndices[x].ToString() + "')";<br />
<br />
                                    SqlCommand adoCmd = new SqlCommand(sql, adoConn);<br />
                                    adoCmd.ExecuteNonQuery();<br />
<br />
<br />
<br />
<br />
<br />



Thank you so much ...this is killing me! I thought I had it.

Sianny aka Sharny
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 
AnswerRe: C# accessing non.NET libraries Pin
WillemM11-Sep-07 21:04
WillemM11-Sep-07 21:04 
GeneralRe: C# accessing non.NET libraries Pin
zaiyatul hijah12-Sep-07 17:04
zaiyatul hijah12-Sep-07 17:04 
Questionhow to create a setup project for Primary Interop Assembly (PIA) - O2003PIA Pin
S Palip11-Sep-07 16:19
S Palip11-Sep-07 16:19 
QuestionC# articles for mt940 Pin
T.EDY11-Sep-07 15:58
T.EDY11-Sep-07 15:58 
AnswerRe: C# articles for mt940 Pin
Malcolm Smart11-Sep-07 20:49
Malcolm Smart11-Sep-07 20:49 
GeneralRe: C# articles for mt940 Pin
T.EDY11-Sep-07 22:25
T.EDY11-Sep-07 22:25 
QuestionDisplay Waveform Pin
Klazen11-Sep-07 14:26
Klazen11-Sep-07 14: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.