Click here to Skip to main content
15,919,749 members
Home / Discussions / C#
   

C#

 
AnswerRe: c# Win Forms, Event Handlers, Store a global setting and retrieve it in an event handler Pin
OriginalGriff14-Nov-18 19:58
mveOriginalGriff14-Nov-18 19:58 
GeneralRe: c# Win Forms, Event Handlers, Store a global setting and retrieve it in an event handler Pin
jkirkerx15-Nov-18 7:54
professionaljkirkerx15-Nov-18 7:54 
AnswerRe: c# Win Forms, Event Handlers, Store a global setting and retrieve it in an event handler Pin
Nathan Minier15-Nov-18 1:17
professionalNathan Minier15-Nov-18 1:17 
GeneralRe: c# Win Forms, Event Handlers, Store a global setting and retrieve it in an event handler Pin
jkirkerx15-Nov-18 7:58
professionaljkirkerx15-Nov-18 7:58 
AnswerRe: c# Win Forms, Event Handlers, Store a global setting and retrieve it in an event handler Pin
BillWoodruff15-Nov-18 13:36
professionalBillWoodruff15-Nov-18 13:36 
GeneralRe: c# Win Forms, Event Handlers, Store a global setting and retrieve it in an event handler Pin
jkirkerx16-Nov-18 9:40
professionaljkirkerx16-Nov-18 9:40 
AnswerRe: c# Win Forms, Event Handlers, Store a global setting and retrieve it in an event handler Pin
Mycroft Holmes15-Nov-18 13:59
professionalMycroft Holmes15-Nov-18 13:59 
GeneralRe: c# Win Forms, Event Handlers, Store a global setting and retrieve it in an event handler Pin
jkirkerx16-Nov-18 9:44
professionaljkirkerx16-Nov-18 9:44 
QuestionCorrelation Between two different Charts in C# Pin
Member 1332584614-Nov-18 12:08
Member 1332584614-Nov-18 12:08 
QuestionDetect Network / VPN Connection Pin
Kevin Marois14-Nov-18 7:25
professionalKevin Marois14-Nov-18 7:25 
AnswerRe: Detect Network / VPN Connection Pin
Eddy Vluggen15-Nov-18 1:21
professionalEddy Vluggen15-Nov-18 1:21 
AnswerRe: Detect Network / VPN Connection Pin
Nathan Minier15-Nov-18 1:38
professionalNathan Minier15-Nov-18 1:38 
QuestionKeeping connection strings secure Pin
Frank R. Haugen14-Nov-18 5:00
professionalFrank R. Haugen14-Nov-18 5:00 
AnswerRe: Keeping connection strings secure Pin
Richard MacCutchan14-Nov-18 5:29
mveRichard MacCutchan14-Nov-18 5:29 
AnswerRe: Keeping connection strings secure Pin
Eddy Vluggen15-Nov-18 1:27
professionalEddy Vluggen15-Nov-18 1:27 
Questionc# with ftp server Pin
erdalczr13-Nov-18 20:30
erdalczr13-Nov-18 20:30 
AnswerRe: c# with ftp server Pin
OriginalGriff13-Nov-18 20:39
mveOriginalGriff13-Nov-18 20:39 
AnswerRe: c# with ftp server Pin
Eddy Vluggen14-Nov-18 0:31
professionalEddy Vluggen14-Nov-18 0:31 
QuestionCan anyone help fix this issue ? c sharp Pin
Member 1405353013-Nov-18 10:53
Member 1405353013-Nov-18 10:53 
AnswerRe: Can anyone help fix this issue ? c sharp Pin
Mycroft Holmes13-Nov-18 11:05
professionalMycroft Holmes13-Nov-18 11:05 
AnswerRe: Can anyone help fix this issue ? c sharp Pin
OriginalGriff13-Nov-18 19:17
mveOriginalGriff13-Nov-18 19:17 
QuestionSeveral lists into one horizontal list Pin
Member 1307682212-Nov-18 22:12
Member 1307682212-Nov-18 22:12 
AnswerRe: Several lists into one horizontal list Pin
OriginalGriff12-Nov-18 23:42
mveOriginalGriff12-Nov-18 23:42 
There is a Zip function which does some of what you want: Enumerable.Zip(IEnumerable<TFirst>, IEnumerable<TSecond>, Func<TFirst,TSecond,TResult>) Method (System.Linq) | Microsoft Docs[^]
List<int> list1 = new List<int>() { 1, 2, 3 };
List<string> list2 = new List<string>() { "A", "B", "C"};
List<string> list3 = new List<string>() { "a", "b", "c" };
var x = list1.Zip(list2, (a, b) => new { a, b }).Zip(list3, (a, c) => new { a.a, a.b, c }).ToList();
But ... the problem is that your lists are not necessarily the same length. I think that to get this to work in any practical way, you'd have to "pad" all three lists with NULL entries in order to use any standard methods. You would probably be better off writing your own class and providing a constructor that takes three lists and combines them the way you want.

What are you trying to do that you think this is a good idea? There may be better ways.
Sent from my Amstrad PC 1640
Never throw anything away, Griff
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!

AnswerRe: Several lists into one horizontal list Pin
BillWoodruff13-Nov-18 2:12
professionalBillWoodruff13-Nov-18 2:12 
GeneralRe: Several lists into one horizontal list Pin
Richard Deeming14-Nov-18 1:09
mveRichard Deeming14-Nov-18 1:09 

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.