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

C#

 
QuestionThreads vs. Tasks Article Pin
Kevin Marois17-Feb-15 18:03
professionalKevin Marois17-Feb-15 18:03 
AnswerRe: Threads vs. Tasks Article Pin
Pete O'Hanlon17-Feb-15 20:22
mvePete O'Hanlon17-Feb-15 20:22 
GeneralRe: Threads vs. Tasks Article Pin
Kevin Marois18-Feb-15 5:30
professionalKevin Marois18-Feb-15 5:30 
QuestionList Box showing Value and Display members? Pin
uniflare17-Feb-15 6:21
uniflare17-Feb-15 6:21 
AnswerRe: List Box showing Value and Display members? Pin
Richard Andrew x6417-Feb-15 6:34
professionalRichard Andrew x6417-Feb-15 6:34 
AnswerRe: List Box showing Value and Display members? Pin
Pete O'Hanlon17-Feb-15 6:54
mvePete O'Hanlon17-Feb-15 6:54 
GeneralRe: List Box showing Value and Display members? Pin
uniflare17-Feb-15 10:21
uniflare17-Feb-15 10:21 
GeneralRe: List Box showing Value and Display members? Pin
Pete O'Hanlon17-Feb-15 10:32
mvePete O'Hanlon17-Feb-15 10:32 
This would seem to indicate that the new BindingSource was resetting the values. While it may not be a bug, it's certainly not a very clever API design (by the designers of WinForms, not you I will hasten to add).

Okay, I've been having more of a think about this and I suspect that the reason that you need to do this is because when you change your BindingSource, the ComboBox has no concept of what it's bound to. You could be binding to something that doesn't use Key and Value here, so it forces you to update these values here.

modified 17-Feb-15 16:58pm.

GeneralRe: List Box showing Value and Display members? Pin
uniflare17-Feb-15 11:29
uniflare17-Feb-15 11:29 
AnswerRe: List Box showing Value and Display members? Pin
seemajoshii17-Feb-15 19:09
seemajoshii17-Feb-15 19:09 
QuestionLogin to asp.net application through a link send via email Pin
User 1098516717-Feb-15 5:01
User 1098516717-Feb-15 5:01 
AnswerRe: Login to asp.net application through a link send via email Pin
Afzaal Ahmad Zeeshan17-Feb-15 5:33
professionalAfzaal Ahmad Zeeshan17-Feb-15 5:33 
QuestionVisual studio 2010 C# identity without hyphen Pin
sdfsdfsdfewrew3feff16-Feb-15 15:55
sdfsdfsdfewrew3feff16-Feb-15 15:55 
AnswerRe: Visual studio 2010 C# identity without hyphen Pin
Dave Kreskowiak16-Feb-15 16:12
mveDave Kreskowiak16-Feb-15 16:12 
GeneralRe: Visual studio 2010 C# identity without hyphen Pin
sdfsdfsdfewrew3feff17-Feb-15 2:54
sdfsdfsdfewrew3feff17-Feb-15 2:54 
GeneralRe: Visual studio 2010 C# identity without hyphen Pin
Dave Kreskowiak17-Feb-15 6:56
mveDave Kreskowiak17-Feb-15 6:56 
GeneralRe: Visual studio 2010 C# identity without hyphen Pin
sdfsdfsdfewrew3feff17-Feb-15 7:09
sdfsdfsdfewrew3feff17-Feb-15 7:09 
GeneralRe: Visual studio 2010 C# identity without hyphen Pin
Dave Kreskowiak17-Feb-15 7:11
mveDave Kreskowiak17-Feb-15 7:11 
GeneralRe: Visual studio 2010 C# identity without hyphen Pin
sdfsdfsdfewrew3feff17-Feb-15 7:17
sdfsdfsdfewrew3feff17-Feb-15 7:17 
GeneralRe: Visual studio 2010 C# identity without hyphen Pin
Mark_Wallace17-Feb-15 9:44
Mark_Wallace17-Feb-15 9:44 
GeneralRe: Visual studio 2010 C# identity without hyphen Pin
Dave Kreskowiak17-Feb-15 9:49
mveDave Kreskowiak17-Feb-15 9:49 
GeneralRe: Visual studio 2010 C# identity without hyphen Pin
Pete O'Hanlon17-Feb-15 8:41
mvePete O'Hanlon17-Feb-15 8:41 
GeneralRe: Visual studio 2010 C# identity without hyphen Pin
Richard MacCutchan17-Feb-15 7:26
mveRichard MacCutchan17-Feb-15 7:26 
GeneralRe: Visual studio 2010 C# identity without hyphen Pin
Dave Kreskowiak17-Feb-15 7:33
mveDave Kreskowiak17-Feb-15 7:33 
GeneralRe: Visual studio 2010 C# identity without hyphen Pin
Richard MacCutchan17-Feb-15 7:37
mveRichard MacCutchan17-Feb-15 7:37 

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.