Click here to Skip to main content
15,847,653 members
Home / Discussions / C#
   

C#

 
QuestionThreads vs. Tasks Article Pin
Kevin Marois17-Feb-15 19:03
professionalKevin Marois17-Feb-15 19:03 
AnswerRe: Threads vs. Tasks Article Pin
Pete O'Hanlon17-Feb-15 21:22
subeditorPete O'Hanlon17-Feb-15 21:22 
GeneralRe: Threads vs. Tasks Article Pin
Kevin Marois18-Feb-15 6:30
professionalKevin Marois18-Feb-15 6:30 
QuestionList Box showing Value and Display members? Pin
uniflare17-Feb-15 7:21
uniflare17-Feb-15 7:21 
AnswerRe: List Box showing Value and Display members? Pin
Richard Andrew x6417-Feb-15 7:34
professionalRichard Andrew x6417-Feb-15 7:34 
AnswerRe: List Box showing Value and Display members? Pin
Pete O'Hanlon17-Feb-15 7:54
subeditorPete O'Hanlon17-Feb-15 7:54 
GeneralRe: List Box showing Value and Display members? Pin
uniflare17-Feb-15 11:21
uniflare17-Feb-15 11:21 
GeneralRe: List Box showing Value and Display members? Pin
Pete O'Hanlon17-Feb-15 11:32
subeditorPete O'Hanlon17-Feb-15 11: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 12:29
uniflare17-Feb-15 12:29 
AnswerRe: List Box showing Value and Display members? Pin
seemajoshii17-Feb-15 20:09
seemajoshii17-Feb-15 20:09 
QuestionLogin to asp.net application through a link send via email Pin
User 1098516717-Feb-15 6:01
User 1098516717-Feb-15 6:01 
AnswerRe: Login to asp.net application through a link send via email Pin
Afzaal Ahmad Zeeshan17-Feb-15 6:33
professionalAfzaal Ahmad Zeeshan17-Feb-15 6:33 
QuestionVisual studio 2010 C# identity without hyphen Pin
sdfsdfsdfewrew3feff16-Feb-15 16:55
sdfsdfsdfewrew3feff16-Feb-15 16:55 
AnswerRe: Visual studio 2010 C# identity without hyphen Pin
Dave Kreskowiak16-Feb-15 17:12
mveDave Kreskowiak16-Feb-15 17:12 
GeneralRe: Visual studio 2010 C# identity without hyphen Pin
sdfsdfsdfewrew3feff17-Feb-15 3:54
sdfsdfsdfewrew3feff17-Feb-15 3:54 
GeneralRe: Visual studio 2010 C# identity without hyphen Pin
Dave Kreskowiak17-Feb-15 7:56
mveDave Kreskowiak17-Feb-15 7:56 
GeneralRe: Visual studio 2010 C# identity without hyphen Pin
sdfsdfsdfewrew3feff17-Feb-15 8:09
sdfsdfsdfewrew3feff17-Feb-15 8:09 
GeneralRe: Visual studio 2010 C# identity without hyphen Pin
Dave Kreskowiak17-Feb-15 8:11
mveDave Kreskowiak17-Feb-15 8:11 
GeneralRe: Visual studio 2010 C# identity without hyphen Pin
sdfsdfsdfewrew3feff17-Feb-15 8:17
sdfsdfsdfewrew3feff17-Feb-15 8:17 
GeneralRe: Visual studio 2010 C# identity without hyphen Pin
Mark_Wallace17-Feb-15 10:44
Mark_Wallace17-Feb-15 10:44 
GeneralRe: Visual studio 2010 C# identity without hyphen Pin
Dave Kreskowiak17-Feb-15 10:49
mveDave Kreskowiak17-Feb-15 10:49 
GeneralRe: Visual studio 2010 C# identity without hyphen Pin
Pete O'Hanlon17-Feb-15 9:41
subeditorPete O'Hanlon17-Feb-15 9:41 
GeneralRe: Visual studio 2010 C# identity without hyphen Pin
Richard MacCutchan17-Feb-15 8:26
mveRichard MacCutchan17-Feb-15 8:26 
GeneralRe: Visual studio 2010 C# identity without hyphen Pin
Dave Kreskowiak17-Feb-15 8:33
mveDave Kreskowiak17-Feb-15 8:33 
GeneralRe: Visual studio 2010 C# identity without hyphen Pin
Richard MacCutchan17-Feb-15 8:37
mveRichard MacCutchan17-Feb-15 8: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.