Click here to Skip to main content
15,890,282 members
Home / Discussions / C#
   

C#

 
AnswerRe: cannot found emailhandler in c# 2008 Pin
OriginalGriff27-Jun-14 22:34
mveOriginalGriff27-Jun-14 22:34 
GeneralRe: cannot found emailhandler in c# 2008 Pin
KaKoten27-Jun-14 22:41
KaKoten27-Jun-14 22:41 
GeneralRe: cannot found emailhandler in c# 2008 Pin
OriginalGriff27-Jun-14 22:45
mveOriginalGriff27-Jun-14 22:45 
GeneralRe: cannot found emailhandler in c# 2008 Pin
KaKoten27-Jun-14 22:57
KaKoten27-Jun-14 22:57 
GeneralRe: cannot found emailhandler in c# 2008 Pin
OriginalGriff27-Jun-14 23:52
mveOriginalGriff27-Jun-14 23:52 
GeneralRe: cannot found emailhandler in c# 2008 Pin
KaKoten28-Jun-14 12:36
KaKoten28-Jun-14 12:36 
GeneralRe: cannot found emailhandler in c# 2008 Pin
OriginalGriff28-Jun-14 22:17
mveOriginalGriff28-Jun-14 22:17 
QuestionForm not allowed to move or choose another form in C# ? Pin
Member 245846727-Jun-14 19:01
Member 245846727-Jun-14 19:01 
AnswerRe: Form not allowed to move or choose another form in C# ? Pin
OriginalGriff27-Jun-14 20:34
mveOriginalGriff27-Jun-14 20:34 
GeneralRe: Form not allowed to move or choose another form in C# ? Pin
Member 245846727-Jun-14 21:40
Member 245846727-Jun-14 21:40 
GeneralRe: Form not allowed to move or choose another form in C# ? Pin
OriginalGriff27-Jun-14 21:52
mveOriginalGriff27-Jun-14 21:52 
GeneralRe: Form not allowed to move or choose another form in C# ? Pin
Member 245846728-Jun-14 5:03
Member 245846728-Jun-14 5:03 
GeneralRe: Form not allowed to move or choose another form in C# ? Pin
Member 245846728-Jun-14 13:38
Member 245846728-Jun-14 13:38 
GeneralRe: Form not allowed to move or choose another form in C# ? Pin
OriginalGriff28-Jun-14 22:25
mveOriginalGriff28-Jun-14 22:25 
QuestionCombining two or three solution in visual C# 2008 Pin
KaKoten27-Jun-14 17:34
KaKoten27-Jun-14 17:34 
AnswerRe: Combining two or three solution in visual C# 2008 Pin
PIEBALDconsult27-Jun-14 17:55
mvePIEBALDconsult27-Jun-14 17:55 
AnswerRe: Combining two or three solution in visual C# 2008 Pin
Dave Kreskowiak27-Jun-14 17:55
mveDave Kreskowiak27-Jun-14 17:55 
GeneralRe: Combining two or three solution in visual C# 2008 Pin
KaKoten27-Jun-14 20:40
KaKoten27-Jun-14 20:40 
GeneralRe: Combining two or three solution in visual C# 2008 Pin
Dave Kreskowiak28-Jun-14 3:55
mveDave Kreskowiak28-Jun-14 3:55 
QuestionOut Putting Graph in Debug Window Pin
computerpublic27-Jun-14 8:06
computerpublic27-Jun-14 8:06 
AnswerRe: Out Putting Graph in Debug Window Pin
Dave Kreskowiak27-Jun-14 8:15
mveDave Kreskowiak27-Jun-14 8:15 
AnswerRe: Out Putting Graph in Debug Window Pin
Gerry Schmitz27-Jun-14 9:59
mveGerry Schmitz27-Jun-14 9:59 
QuestionFilter & Auto complete for dropdownlistfor (MVC) Pin
Cathylou Barbado27-Jun-14 0:06
Cathylou Barbado27-Jun-14 0:06 
AnswerRe: Filter & Auto complete for dropdownlistfor (MVC) Pin
thatraja27-Jun-14 1:12
professionalthatraja27-Jun-14 1:12 
QuestionLINQ version equivalent Pin
Member 727859826-Jun-14 23:13
Member 727859826-Jun-14 23:13 
I am trying to get my head around LINQ and am going through some old code to practice, below is some code that i want to convert but cannot work out how to do it.
anyone have any ideas please.
Reading a csv file, getting first element only with some blank lines and should be able to populate combobox with something like:
cboSiteLocation.Items.AddRange(lines.ToArray());

using (StreamReader sr = new StreamReader(filepath)) 
                {
                    IEnumerable<string> lines = File.ReadLines(filepath); // LINQ query here
                    
                    string[] element;

                    foreach (string line in lines)
                    {
                        if (!string.IsNullOrEmpty(line))
                        {
                            element = line.Split(',');
                            this.cboSiteLocation.Items.Add(element[0].Trim());
                        }
                    }                    
                }
   
Thanks in advance

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.