Click here to Skip to main content
15,888,610 members
Home / Discussions / C#
   

C#

 
QuestionEF Core - Auto apply migrations with different SQL user Pin
Germghost31-Jan-22 1:33
Germghost31-Jan-22 1:33 
AnswerRe: EF Core - Auto apply migrations with different SQL user Pin
Victor Nijegorodov31-Jan-22 1:54
Victor Nijegorodov31-Jan-22 1:54 
AnswerRe: EF Core - Auto apply migrations with different SQL user Pin
Richard Deeming31-Jan-22 1:54
mveRichard Deeming31-Jan-22 1:54 
QuestionRe: EF Core - Auto apply migrations with different SQL user Pin
Germghost31-Jan-22 2:17
Germghost31-Jan-22 2:17 
AnswerRe: EF Core - Auto apply migrations with different SQL user Pin
Germghost31-Jan-22 3:02
Germghost31-Jan-22 3:02 
QuestionFill multiple comboboxes with identical information Pin
Richard A Knox27-Jan-22 2:32
Richard A Knox27-Jan-22 2:32 
AnswerRe: Fill multiple comboboxes with identical information Pin
OriginalGriff27-Jan-22 4:01
mveOriginalGriff27-Jan-22 4:01 
AnswerRe: Fill multiple comboboxes with identical information Pin
RobertSF27-Jan-22 6:40
professionalRobertSF27-Jan-22 6:40 
Is this the same data you were previously considering how to store? A lot depends on how much data, how much the data changes, and in how many places you need the data.

Suppose this one form with the eight combo boxes is the only place where you will need this data. You had mentioned building some kind of calculator or estimator, so it could conceivably consist of just one form. If that's the case, you might consider just manually entering the data in the form designer. Each combo box lets you type in the choices in the list.

A step up from that would be to put the values in an array. Then use that array as the data source to a BindingSource. Then use that binding source as the data source to the first combo box. Repeat the process for the other seven combo boxes. You need one array, but you need a binding source for each combo box. This is because a binding source has only one current position, so if you use the same binding source for more than one combo box, setting one combo box will immediately set all the other combo boxes to the same selected item.

Here's a similar question with code.
c# - Populate a combobox with array information - Stack Overflow[^]
AnswerRe: Fill multiple comboboxes with identical information Pin
Gerry Schmitz27-Jan-22 6:56
mveGerry Schmitz27-Jan-22 6:56 
GeneralRe: Fill multiple comboboxes with identical information Pin
RobertSF27-Jan-22 8:47
professionalRobertSF27-Jan-22 8:47 
GeneralRe: Fill multiple comboboxes with identical information Pin
Gerry Schmitz27-Jan-22 17:28
mveGerry Schmitz27-Jan-22 17:28 
GeneralRe: Fill multiple comboboxes with identical information Pin
RobertSF28-Jan-22 8:01
professionalRobertSF28-Jan-22 8:01 
GeneralRe: Fill multiple comboboxes with identical information Pin
Gerry Schmitz28-Jan-22 8:44
mveGerry Schmitz28-Jan-22 8:44 
QuestionSecuring a Named Pipe Pin
Richard Andrew x6426-Jan-22 8:34
professionalRichard Andrew x6426-Jan-22 8:34 
AnswerRe: Securing a Named Pipe Pin
Luc Pattyn26-Jan-22 12:12
sitebuilderLuc Pattyn26-Jan-22 12:12 
GeneralRe: Securing a Named Pipe Pin
Richard Andrew x6427-Jan-22 7:06
professionalRichard Andrew x6427-Jan-22 7:06 
GeneralRe: Securing a Named Pipe Pin
Luc Pattyn27-Jan-22 7:11
sitebuilderLuc Pattyn27-Jan-22 7:11 
SuggestionRe: Securing a Named Pipe Pin
Randor 27-Jan-22 22:16
professional Randor 27-Jan-22 22:16 
GeneralRe: Securing a Named Pipe Pin
Richard Andrew x6428-Jan-22 3:58
professionalRichard Andrew x6428-Jan-22 3:58 
GeneralRe: Securing a Named Pipe Pin
Randor 28-Jan-22 9:32
professional Randor 28-Jan-22 9:32 
QuestionBest way to store/access data? Pin
Richard A Knox26-Jan-22 3:56
Richard A Knox26-Jan-22 3:56 
AnswerRe: Best way to store/access data? Pin
Richard MacCutchan26-Jan-22 4:39
mveRichard MacCutchan26-Jan-22 4:39 
QuestionRe: Best way to store/access data? Pin
Richard A Knox26-Jan-22 5:58
Richard A Knox26-Jan-22 5:58 
AnswerRe: Best way to store/access data? Pin
Richard MacCutchan26-Jan-22 6:09
mveRichard MacCutchan26-Jan-22 6:09 
AnswerRe: Best way to store/access data? Pin
OriginalGriff26-Jan-22 6:21
mveOriginalGriff26-Jan-22 6:21 

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.