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

C#

 
QuestionHow to make an inactive window work and respond to buttons (C# .NET windows forms) Pin
Marcin Rajczakowski23-Aug-21 10:31
Marcin Rajczakowski23-Aug-21 10:31 
AnswerRe: How to make an inactive window work and respond to buttons (C# .NET windows forms) Pin
BillWoodruff23-Aug-21 11:20
professionalBillWoodruff23-Aug-21 11:20 
GeneralInterfaces with code in them Pin
Rob Philpott20-Aug-21 0:22
Rob Philpott20-Aug-21 0:22 
GeneralRe: Interfaces with code in them Pin
Richard Deeming20-Aug-21 0:40
mveRichard Deeming20-Aug-21 0:40 
GeneralRe: Interfaces with code in them Pin
Rob Philpott20-Aug-21 0:55
Rob Philpott20-Aug-21 0:55 
GeneralRe: Interfaces with code in them Pin
pkfox29-Aug-21 22:46
professionalpkfox29-Aug-21 22:46 
GeneralRe: Interfaces with code in them Pin
Gerry Schmitz20-Aug-21 6:48
mveGerry Schmitz20-Aug-21 6:48 
Questionthere I thought the days of CreateParams were over ... observation (tip ?) Pin
BillWoodruff17-Aug-21 12:34
professionalBillWoodruff17-Aug-21 12:34 
AnswerRe: there I thought the days of CreateParams were over ... observation (tip ?) Pin
OriginalGriff19-Aug-21 9:02
mveOriginalGriff19-Aug-21 9:02 
GeneralRe: there I thought the days of CreateParams were over ... observation (tip ?) Pin
Richard Andrew x6419-Aug-21 9:26
professionalRichard Andrew x6419-Aug-21 9:26 
GeneralRe: there I thought the days of CreateParams were over ... observation (tip ?) Pin
BillWoodruff19-Aug-21 10:46
professionalBillWoodruff19-Aug-21 10:46 
QuestionSystem.IndexOutOfRangeException Pin
ProgrammerT216-Aug-21 23:36
ProgrammerT216-Aug-21 23:36 
AnswerRe: System.IndexOutOfRangeException Pin
Ralf Meier16-Aug-21 23:43
mveRalf Meier16-Aug-21 23:43 
AnswerRe: System.IndexOutOfRangeException Pin
OriginalGriff17-Aug-21 0:06
mveOriginalGriff17-Aug-21 0:06 
QuestionHow Linq determine the index of a list item? Pin
Alex Dunlop16-Aug-21 22:57
Alex Dunlop16-Aug-21 22:57 
Hi,
I want to detect index of all empty values in a list using Linq. I searched StachOverFlow to find a solution. I changed it based on my needs. The following Linq method syntex works fine:

List<string> collection = new List<string>() {"", "ghjg", "jkgh", ""};
var indexOf = collection.Select((value, index) => new { value, index })
						.Where(pair => string.IsNullOrEmpty(pair.value))
						.Select(pair => pair.index);
foreach (var item in indexOf)
{
	Console.WriteLine(item);
}

I tested it in LinqPad.
But I need an explanation about how Linq detects index in the defined pair?
AnswerRe: How Linq determine the index of a list item? Pin
Richard Deeming16-Aug-21 23:09
mveRichard Deeming16-Aug-21 23:09 
QuestionC# interacting with Excel Pin
Ismael Oliveira 202116-Aug-21 13:15
Ismael Oliveira 202116-Aug-21 13:15 
AnswerRe: C# interacting with Excel Pin
Richard Deeming16-Aug-21 21:36
mveRichard Deeming16-Aug-21 21:36 
GeneralRe: C# interacting with Excel Pin
Ismael Oliveira 202124-Aug-21 12:46
Ismael Oliveira 202124-Aug-21 12:46 
AnswerRe: C# interacting with Excel Pin
Richard MacCutchan16-Aug-21 21:42
mveRichard MacCutchan16-Aug-21 21:42 
AnswerRe: C# interacting with Excel Pin
SpiveyC#7-Sep-21 1:44
SpiveyC#7-Sep-21 1:44 
QuestionHow to merge cells in Excel using C# Pin
Ismael Oliveira 202112-Aug-21 12:43
Ismael Oliveira 202112-Aug-21 12:43 
AnswerRe: How to merge cells in Excel using C# Pin
Richard MacCutchan12-Aug-21 21:35
mveRichard MacCutchan12-Aug-21 21:35 
GeneralRe: How to merge cells in Excel using C# Pin
Ismael Oliveira 202113-Aug-21 13:45
Ismael Oliveira 202113-Aug-21 13:45 
GeneralRe: How to merge cells in Excel using C# Pin
Richard MacCutchan13-Aug-21 21:44
mveRichard MacCutchan13-Aug-21 21:44 

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.