Click here to Skip to main content
15,887,812 members
Home / Discussions / C#
   

C#

 
GeneralRe: License Key Generation Pin
#realJSOP17-Jul-08 3:14
mve#realJSOP17-Jul-08 3:14 
AnswerRe: License Key Generation Tool Pin
RWBitters27-Nov-09 15:11
RWBitters27-Nov-09 15:11 
QuestionDatabase retrieving problem Pin
Nishad8517-Sep-07 18:12
Nishad8517-Sep-07 18:12 
QuestionProblem with SQL Update using Variables in C# [modified] Pin
ba1959nh17-Sep-07 16:29
ba1959nh17-Sep-07 16:29 
AnswerRe: Problem with SQL Update using Variables in C# Pin
PIEBALDconsult17-Sep-07 18:34
mvePIEBALDconsult17-Sep-07 18:34 
AnswerRe: Problem with SQL Update using Variables in C# Pin
ba1959nh18-Sep-07 2:58
ba1959nh18-Sep-07 2:58 
GeneralRe: Problem with SQL Update using Variables in C# Pin
PIEBALDconsult18-Sep-07 5:03
mvePIEBALDconsult18-Sep-07 5:03 
QuestionQuestion on checkedlistbox if statement Pin
falles0117-Sep-07 15:27
falles0117-Sep-07 15:27 
Hi all,

for those of you who have been reading my countless posts on this same question, I think I have solved the problem by binding the database data to the checkedlistbox by using datasource and valuemember properties instead of the other way I was doing it because now the checkedlistbox items now bind by ID. Now in order to make the boxes auto tick depending on the particular employee page I am in(eg.this.EmployeeID), I think all I need help on is this 'if' statement. so far all the boxes are ticking with the following code.

What is the if statement going to be?

<br />
 techSkillsCheckListBox2.DataSource = dataSet1.TechnicalSkills;<br />
                    techSkillsCheckListBox2.DisplayMember = "ProgLanguagesDatabase";<br />
                    techSkillsCheckListBox2.ValueMember = "TechnicalSkillsID";<br />
<br />
                    int i;<br />
                    for (i = 0; i <= (techSkillsCheckListBox2.Items.Count - 1); i++)<br />
                    {<br />
                       <br />
<br />
                        if (FirstnameText.Text.Equals(this.EmployeeID))<br />
                        {<br />
                                                    sql = "Select em.TechnicalSkillsID,t.TechnicalSkills,em.EmployeeID from EmpSkills em, TechnicalSkills t where t.TechnicalSkillsID = em.TechnicalSkillsID and em.EmployeeID = '" + FirstnameText.Text + "'";<br />
                       <br />
                            <br />
                                techSkillsCheckListBox2.SetItemChecked(i, true)<br />


Thank you Sniff | :^)

Sianny aka Sharny
QuestionLogon with UserName and Password Pin
T4AMD17-Sep-07 12:15
T4AMD17-Sep-07 12:15 
AnswerRe: Logon with UserName and Password Pin
ChrisKo17-Sep-07 12:33
ChrisKo17-Sep-07 12:33 
QuestionRe: Logon with UserName and Password Pin
T4AMD17-Sep-07 12:42
T4AMD17-Sep-07 12:42 
AnswerRe: Logon with UserName and Password Pin
ChrisKo17-Sep-07 12:50
ChrisKo17-Sep-07 12:50 
AnswerRe: Logon with UserName and Password Pin
PIEBALDconsult17-Sep-07 14:01
mvePIEBALDconsult17-Sep-07 14:01 
QuestionConsole application keypress Pin
ballzinator17-Sep-07 11:50
ballzinator17-Sep-07 11:50 
AnswerRe: Console application keypress Pin
ChrisKo17-Sep-07 12:27
ChrisKo17-Sep-07 12:27 
GeneralRe: Console application keypress Pin
ballzinator18-Sep-07 3:27
ballzinator18-Sep-07 3:27 
GeneralRe: Console application keypress Pin
Big Daddy Farang18-Sep-07 8:22
Big Daddy Farang18-Sep-07 8:22 
Questionwhat is better c# or vb.net ?? Pin
sofy200817-Sep-07 11:49
sofy200817-Sep-07 11:49 
AnswerRe: what is better c# or vb.net ?? Pin
Matthew Cuba17-Sep-07 12:42
Matthew Cuba17-Sep-07 12:42 
AnswerRe: what is better c# or vb.net ?? Pin
Patrick Etc.17-Sep-07 13:33
Patrick Etc.17-Sep-07 13:33 
GeneralRe: what is better c# or vb.net ?? Pin
PIEBALDconsult17-Sep-07 13:58
mvePIEBALDconsult17-Sep-07 13:58 
GeneralRe: what is better c# or vb.net ?? Pin
Luc Pattyn17-Sep-07 14:41
sitebuilderLuc Pattyn17-Sep-07 14:41 
AnswerRe: what is better c# or vb.net ?? Pin
BoneSoft17-Sep-07 17:50
BoneSoft17-Sep-07 17:50 
GeneralRe: what is better c# or vb.net ?? Pin
Big Daddy Farang18-Sep-07 8:30
Big Daddy Farang18-Sep-07 8:30 
GeneralRe: what is better c# or vb.net ?? Pin
BoneSoft18-Sep-07 8:51
BoneSoft18-Sep-07 8:51 

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.