Click here to Skip to main content
15,907,281 members
Home / Discussions / C#
   

C#

 
GeneralRe: Find the differences between two images for screen sharing apps Pin
Richard Deeming30-Nov-12 4:42
mveRichard Deeming30-Nov-12 4:42 
QuestionAdding/Removing multiple IP addresses to NIC Pin
lorenzo.santoro29-Nov-12 21:07
lorenzo.santoro29-Nov-12 21:07 
AnswerRe: Adding/Removing multiple IP addresses to NIC Pin
Dave Kreskowiak30-Nov-12 4:05
mveDave Kreskowiak30-Nov-12 4:05 
GeneralRe: Adding/Removing multiple IP addresses to NIC Pin
lorenzo.santoro12-Dec-12 5:26
lorenzo.santoro12-Dec-12 5:26 
QuestionDetecting Webcam Pin
sarang_k29-Nov-12 19:51
sarang_k29-Nov-12 19:51 
AnswerRe: Detecting Webcam Pin
Pete O'Hanlon29-Nov-12 20:35
mvePete O'Hanlon29-Nov-12 20:35 
GeneralRe: Detecting Webcam Pin
sarang_k2-Dec-12 18:17
sarang_k2-Dec-12 18:17 
GeneralRe: Detecting Webcam Pin
Pete O'Hanlon2-Dec-12 19:23
mvePete O'Hanlon2-Dec-12 19:23 
GeneralRe: Detecting Webcam Pin
sarang_k9-Dec-12 22:41
sarang_k9-Dec-12 22:41 
QuestionResourceBundle class in C#? Pin
LAPEC29-Nov-12 12:17
LAPEC29-Nov-12 12:17 
AnswerRe: ResourceBundle class in C#? Pin
Pete O'Hanlon29-Nov-12 12:53
mvePete O'Hanlon29-Nov-12 12:53 
QuestionHow do you properly deal with ContextSwitchDeadlock or DisconnectedContext? Pin
turbosupramk329-Nov-12 11:13
turbosupramk329-Nov-12 11:13 
QuestionSome ideas needed on the response part of a queued WCF example Pin
Ger Hayden29-Nov-12 10:28
Ger Hayden29-Nov-12 10:28 
QuestionI NEED YOUR HELP Pin
OğuzhanÇALIŞKAN29-Nov-12 10:08
OğuzhanÇALIŞKAN29-Nov-12 10:08 
AnswerRe: I NEED YOUR HELP Pin
OriginalGriff29-Nov-12 20:21
mveOriginalGriff29-Nov-12 20:21 
QuestionDebugger stepping into referenced class first and bypassing parent Pin
MichCl29-Nov-12 9:27
MichCl29-Nov-12 9:27 
AnswerRe: Debugger stepping into referenced class first and bypassing parent Pin
MichCl30-Nov-12 7:49
MichCl30-Nov-12 7:49 
QuestionIframes cross domain Exception Handling---PLEASE HELP Pin
Ved Yo29-Nov-12 8:46
Ved Yo29-Nov-12 8:46 
QuestionClient Side Crystal Report Error Pin
Taskeen Asif29-Nov-12 8:16
Taskeen Asif29-Nov-12 8:16 
QuestionError2 Build failed due to validation errors in *.dbml Pin
sc steinhayse29-Nov-12 4:43
sc steinhayse29-Nov-12 4:43 
AnswerRe: Error2 Build failed due to validation errors in *.dbml Pin
Pete O'Hanlon29-Nov-12 5:00
mvePete O'Hanlon29-Nov-12 5:00 
QuestionC# Problem adding datetime columns with data in gridview Pin
Blenni29-Nov-12 2:50
Blenni29-Nov-12 2:50 
AnswerRe: C# Problem adding datetime columns with data in gridview Pin
BobJanova29-Nov-12 3:21
BobJanova29-Nov-12 3:21 
I'm not sure what you're trying to do here. What you're actually doing is adding a new row for each appointment, with the subject in the first column.

I think what you want is

List<DateTime> days = new List<DateTime>(); // why the heck did you call this NAME?
for (int i = 0; i < 10; i++){
 days.Add(DateTime.Now.AddDays(i));
 DataColumn dcol = new DataColumn(NAME[i].ToString(), typeof(System.String));
 dt.Columns.Add(dcol);
}

foreach (Appointment appt in findResults.Items){
 int index = days.FindIndex(dt => dt.Day == appt.Start.Day);
 if(index > 0) {
  DataRow dr = dt.Rows.Add();
  dr[index] = appt.Subject;
 }
}

GeneralRe: C# Problem adding datetime columns with data in gridview Pin
Blenni29-Nov-12 3:49
Blenni29-Nov-12 3:49 
GeneralRe: C# Problem adding datetime columns with data in gridview Pin
BobJanova29-Nov-12 6:05
BobJanova29-Nov-12 6:05 

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.