Click here to Skip to main content
15,906,816 members
Home / Discussions / C#
   

C#

 
QuestionCannot open 2 or more outlook contact detail Pin
manfree7-Apr-09 0:38
manfree7-Apr-09 0:38 
QuestionHow to Create a setup file in c#.net3.5 windows application Pin
Narendra Reddy Vajrala7-Apr-09 0:14
Narendra Reddy Vajrala7-Apr-09 0:14 
AnswerRe: How to Create a setup file in c#.net3.5 windows application Pin
stancrm7-Apr-09 0:25
stancrm7-Apr-09 0:25 
GeneralRe: How to Create a setup file in c#.net3.5 windows application Pin
Narendra Reddy Vajrala7-Apr-09 0:56
Narendra Reddy Vajrala7-Apr-09 0:56 
GeneralRe: How to Create a setup file in c#.net3.5 windows application Pin
Henry Minute7-Apr-09 2:05
Henry Minute7-Apr-09 2:05 
GeneralRe: How to Create a setup file in c#.net3.5 windows application Pin
Narendra Reddy Vajrala7-Apr-09 2:31
Narendra Reddy Vajrala7-Apr-09 2:31 
GeneralRe: How to Create a setup file in c#.net3.5 windows application Pin
Henry Minute7-Apr-09 11:40
Henry Minute7-Apr-09 11:40 
QuestionCalculate the age in years,months and days using the datetimepicker. Pin
Schdev7-Apr-09 0:10
Schdev7-Apr-09 0:10 
AnswerRe: Calculate the age in years,months and days using the datetimepicker. Pin
stancrm7-Apr-09 0:27
stancrm7-Apr-09 0:27 
AnswerRe: Calculate the age in years,months and days using the datetimepicker. Pin
DaveyM697-Apr-09 1:02
professionalDaveyM697-Apr-09 1:02 
AnswerRe: Calculate the age in years,months and days using the datetimepicker. Pin
Henry Minute7-Apr-09 1:04
Henry Minute7-Apr-09 1:04 
AnswerRe: Calculate the age in years,months and days using the datetimepicker. Pin
Luc Pattyn7-Apr-09 3:50
sitebuilderLuc Pattyn7-Apr-09 3:50 
QuestionWriting to ListBox from multiple threads Pin
Bruce Coward7-Apr-09 0:00
Bruce Coward7-Apr-09 0:00 
AnswerRe: Writing to ListBox from multiple threads Pin
Nicholas Butler7-Apr-09 0:52
sitebuilderNicholas Butler7-Apr-09 0:52 
GeneralRe: Writing to ListBox from multiple threads Pin
Bruce Coward7-Apr-09 1:04
Bruce Coward7-Apr-09 1:04 
GeneralRe: Writing to ListBox from multiple threads Pin
Nicholas Butler7-Apr-09 1:19
sitebuilderNicholas Butler7-Apr-09 1:19 
GeneralRe: Writing to ListBox from multiple threads Pin
Luc Pattyn7-Apr-09 3:53
sitebuilderLuc Pattyn7-Apr-09 3:53 
AnswerRe: Writing to ListBox from multiple threads Pin
Henry Minute7-Apr-09 1:15
Henry Minute7-Apr-09 1:15 
GeneralRe: Writing to ListBox from multiple threads Pin
Nicholas Butler7-Apr-09 1:23
sitebuilderNicholas Butler7-Apr-09 1:23 
GeneralRe: Writing to ListBox from multiple threads Pin
Henry Minute7-Apr-09 1:35
Henry Minute7-Apr-09 1:35 
GeneralRe: Writing to ListBox from multiple threads Pin
Bruce Coward7-Apr-09 1:24
Bruce Coward7-Apr-09 1:24 
GeneralRe: Writing to ListBox from multiple threads Pin
Henry Minute7-Apr-09 1:35
Henry Minute7-Apr-09 1:35 
The two background threads certainly need to be able to 'see' Form1, the best bet is probably as Nick suggested by passing a reference to Form1 in the constructor of the threads.

The problems caused by making log() static are that log() itself will not be able to see the listbox.

Henry Minute

Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”

GeneralRe: Writing to ListBox from multiple threads Pin
Bruce Coward7-Apr-09 1:40
Bruce Coward7-Apr-09 1:40 
AnswerRe: Writing to ListBox from multiple threads Pin
DaveyM697-Apr-09 2:22
professionalDaveyM697-Apr-09 2:22 
AnswerRe: Writing to ListBox from multiple threads Pin
Luc Pattyn7-Apr-09 4:05
sitebuilderLuc Pattyn7-Apr-09 4: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.