Click here to Skip to main content
15,890,123 members
Home / Discussions / C#
   

C#

 
QuestionDeleting registry values Pin
Erol230913-Jan-13 4:51
Erol230913-Jan-13 4:51 
AnswerRe: Deleting registry values Pin
Thomas Daniels13-Jan-13 6:06
mentorThomas Daniels13-Jan-13 6:06 
GeneralRe: Deleting registry values Pin
Erol230913-Jan-13 8:44
Erol230913-Jan-13 8:44 
GeneralRe: Deleting registry values Pin
Thomas Daniels14-Jan-13 5:57
mentorThomas Daniels14-Jan-13 5:57 
AnswerRe: Deleting registry values Pin
Pete O'Hanlon13-Jan-13 8:56
mvePete O'Hanlon13-Jan-13 8:56 
GeneralRe: Deleting registry values Pin
Erol230913-Jan-13 22:17
Erol230913-Jan-13 22:17 
GeneralRe: Deleting registry values Pin
Jibesh13-Jan-13 22:32
professionalJibesh13-Jan-13 22:32 
GeneralRe: Deleting registry values Pin
Pete O'Hanlon13-Jan-13 23:40
mvePete O'Hanlon13-Jan-13 23:40 
If you had stepped over your code, you would have seen what the problem is. Basically, you're iterating over one list of values, and you're getting one single value from the other list to compare it to. Try iterating over the selected items from the list box as well, and do your comparison in there.

Now, a more important point is that your comparison code is using terrible variable names. I ended up getting confused by your t and v variables.

*pre-emptive celebratory nipple tassle jiggle* - Sean Ewington

"Mind bleach! Send me mind bleach!" - Nagy Vilmos


CodeStash - Online Snippet Management | My blog | MoXAML PowerToys | Mole 2010 - debugging made easier

QuestionIndex was outside the bounds of the array. Pin
Erol230913-Jan-13 4:11
Erol230913-Jan-13 4:11 
AnswerRe: Index was outside the bounds of the array. Pin
OriginalGriff13-Jan-13 4:15
mveOriginalGriff13-Jan-13 4:15 
GeneralRe: Index was outside the bounds of the array. Pin
Erol230913-Jan-13 4:17
Erol230913-Jan-13 4:17 
GeneralRe: Index was outside the bounds of the array. Pin
OriginalGriff13-Jan-13 4:21
mveOriginalGriff13-Jan-13 4:21 
AnswerRe: Index was outside the bounds of the array. Pin
PIEBALDconsult13-Jan-13 4:41
mvePIEBALDconsult13-Jan-13 4:41 
QuestionObject reference not set to an instance of an object Pin
Erol230912-Jan-13 19:25
Erol230912-Jan-13 19:25 
AnswerRe: Object reference not set to an instance of an object Pin
Jibesh12-Jan-13 19:41
professionalJibesh12-Jan-13 19:41 
QuestionSaving selected option into database Pin
Oyebisi Jemil12-Jan-13 11:31
Oyebisi Jemil12-Jan-13 11:31 
AnswerRe: Saving selected option into database Pin
Pete O'Hanlon12-Jan-13 11:45
mvePete O'Hanlon12-Jan-13 11:45 
AnswerRe: Saving selected option into database Pin
Dave Kreskowiak12-Jan-13 12:48
mveDave Kreskowiak12-Jan-13 12:48 
GeneralRe: Saving selected option into database Pin
Brisingr Aerowing12-Jan-13 13:49
professionalBrisingr Aerowing12-Jan-13 13:49 
GeneralRe: Saving selected option into database Pin
PIEBALDconsult12-Jan-13 15:22
mvePIEBALDconsult12-Jan-13 15:22 
QuestionBinary Reader Pin
dxtrx12-Jan-13 10:38
dxtrx12-Jan-13 10:38 
AnswerRe: Binary Reader Pin
Jibesh12-Jan-13 13:01
professionalJibesh12-Jan-13 13:01 
GeneralRe: Binary Reader Pin
dxtrx12-Jan-13 13:17
dxtrx12-Jan-13 13:17 
GeneralRe: Binary Reader Pin
Brisingr Aerowing12-Jan-13 13:48
professionalBrisingr Aerowing12-Jan-13 13:48 
QuestionSocket programming- Response to all client Pin
mohammadkaab12-Jan-13 7:36
mohammadkaab12-Jan-13 7:36 

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.