Click here to Skip to main content
15,876,879 members
Home / Discussions / C#
   

C#

 
AnswerRe: C# Project Suggestion ! Pin
BillWoodruff22-Jan-17 15:01
professionalBillWoodruff22-Jan-17 15:01 
GeneralRe: C# Project Suggestion ! Pin
TEProjects23-Jan-17 1:48
professionalTEProjects23-Jan-17 1:48 
GeneralRe: C# Project Suggestion ! Pin
BillWoodruff23-Jan-17 23:49
professionalBillWoodruff23-Jan-17 23:49 
AnswerRe: C# Project Suggestion ! Pin
Eddy Vluggen23-Jan-17 2:32
professionalEddy Vluggen23-Jan-17 2:32 
Questionhow to get row index in datagridview in c# Pin
Usman ali20-Jan-17 5:01
Usman ali20-Jan-17 5:01 
AnswerRe: how to get row index in datagridview in c# Pin
A.R Farooqui23-Jan-17 1:36
professionalA.R Farooqui23-Jan-17 1:36 
QuestionConvert Dictionary Net 4.0 to Net 2.0 ? Pin
Member 245846719-Jan-17 20:48
Member 245846719-Jan-17 20:48 
AnswerRe: Convert Dictionary Net 4.0 to Net 2.0 ? Pin
Pete O'Hanlon19-Jan-17 21:32
mvePete O'Hanlon19-Jan-17 21:32 
The problem with this code is that it's using a collection initializer which wasn't introduced until Visual Studio 2008. Fortunately, this is a simple enough fix, you just move the initialization out and use Add instead.
C#
Dictionary<string, Action<IWin32Window>> ItemHandlers = new Dictionary<string, Action<IWin32Window>>();
ItemHandlers.Add("A", o => MessageBox.Show(o, "The command A is executed", "Dx Sample", MessageBoxButtons.OK, MessageBoxIcon.Information));
ItemHandlers.Add("B", o => MessageBox.Show(o, "The command B is executed", "Dx Sample", MessageBoxButtons.OK, MessageBoxIcon.Information));

This space for rent

JokeC# parser Pin
alfcas19-Jan-17 3:56
alfcas19-Jan-17 3:56 
GeneralRe: C# parser Pin
Pete O'Hanlon19-Jan-17 4:17
mvePete O'Hanlon19-Jan-17 4:17 
GeneralRe: C# parser Pin
Eddy Vluggen19-Jan-17 4:37
professionalEddy Vluggen19-Jan-17 4:37 
GeneralRe: C# parser Pin
Daniel Pfeffer19-Jan-17 4:47
professionalDaniel Pfeffer19-Jan-17 4:47 
GeneralRe: C# parser Pin
OriginalGriff19-Jan-17 4:52
mveOriginalGriff19-Jan-17 4:52 
GeneralRe: C# parser Pin
Daniel Pfeffer19-Jan-17 5:07
professionalDaniel Pfeffer19-Jan-17 5:07 
GeneralRe: C# parser Pin
OriginalGriff19-Jan-17 4:49
mveOriginalGriff19-Jan-17 4:49 
QuestionSSD Computer and Visual Studio 2015... Pin
wtf3218-Jan-17 19:11
wtf3218-Jan-17 19:11 
AnswerRe: SSD Computer and Visual Studio 2015... Pin
Pete O'Hanlon18-Jan-17 19:19
mvePete O'Hanlon18-Jan-17 19:19 
AnswerRe: SSD Computer and Visual Studio 2015... Pin
OriginalGriff18-Jan-17 20:28
mveOriginalGriff18-Jan-17 20:28 
AnswerRe: SSD Computer and Visual Studio 2015... Pin
Nathan Minier19-Jan-17 1:22
professionalNathan Minier19-Jan-17 1:22 
AnswerRe: SSD Computer and Visual Studio 2015... Pin
Eddy Vluggen19-Jan-17 1:51
professionalEddy Vluggen19-Jan-17 1:51 
GeneralRe: SSD Computer and Visual Studio 2015... Pin
wtf3219-Jan-17 2:26
wtf3219-Jan-17 2:26 
AnswerRe: SSD Computer and Visual Studio 2015... Pin
Gerry Schmitz19-Jan-17 5:27
mveGerry Schmitz19-Jan-17 5:27 
QuestionWinforms custom property fails to reload - continued from QA Pin
Midi_Mick18-Jan-17 3:53
professionalMidi_Mick18-Jan-17 3:53 
AnswerRe: Winforms custom property fails to reload - continued from QA Pin
Gerry Schmitz18-Jan-17 4:47
mveGerry Schmitz18-Jan-17 4:47 
GeneralRe: Winforms custom property fails to reload - continued from QA Pin
Midi_Mick18-Jan-17 4:54
professionalMidi_Mick18-Jan-17 4:54 

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.