Click here to Skip to main content
15,868,141 members
Home / Discussions / C#
   

C#

 
GeneralRe: I am having an issue with Boolean variables... Pin
glennPattonWork310-Mar-16 3:30
professionalglennPattonWork310-Mar-16 3:30 
GeneralRe: I am having an issue with Boolean variables... Pin
OriginalGriff10-Mar-16 3:35
mveOriginalGriff10-Mar-16 3:35 
GeneralRe: I am having an issue with Boolean variables... Pin
glennPattonWork310-Mar-16 4:40
professionalglennPattonWork310-Mar-16 4:40 
GeneralRe: I am having an issue with Boolean variables... Pin
OriginalGriff10-Mar-16 5:08
mveOriginalGriff10-Mar-16 5:08 
GeneralRe: I am having an issue with Boolean variables... Pin
glennPattonWork310-Mar-16 5:15
professionalglennPattonWork310-Mar-16 5:15 
GeneralRe: I am having an issue with Boolean variables... Pin
OriginalGriff10-Mar-16 5:30
mveOriginalGriff10-Mar-16 5:30 
GeneralRe: I am having an issue with Boolean variables... Pin
glennPattonWork310-Mar-16 5:39
professionalglennPattonWork310-Mar-16 5:39 
GeneralRe: I am having an issue with Boolean variables... Pin
Luc Pattyn10-Mar-16 8:58
sitebuilderLuc Pattyn10-Mar-16 8:58 
If threads are causing your duplicate, you're in even bigger trouble, since you are also accessing a Control property, something only the GUI thread is allowed to do.

IMO your code needs a big overhaul: use a model that holds your data, a view that takes care of the UI, and a separate object (or at least an explicit method) to create the output file(s) you need.

By not mixing it all up you'll avoid both illegal cross-thread Control accesses and the risk of duplicates in your CSV.

Smile | :)
Luc Pattyn [My Articles] Nil Volentibus Arduum

GeneralRe: I am having an issue with Boolean variables... Pin
glennPattonWork310-Mar-16 13:48
professionalglennPattonWork310-Mar-16 13:48 
GeneralRe: I am having an issue with Boolean variables... Pin
PIEBALDconsult10-Mar-16 4:19
mvePIEBALDconsult10-Mar-16 4:19 
GeneralRe: I am having an issue with Boolean variables... Pin
glennPattonWork310-Mar-16 4:28
professionalglennPattonWork310-Mar-16 4:28 
QuestionShowing a ProgressBar from a FileSystemWatcher Pin
Paböö .10-Mar-16 1:53
Paböö .10-Mar-16 1:53 
AnswerRe: Showing a ProgressBar from a FileSystemWatcher Pin
Richard MacCutchan10-Mar-16 2:39
mveRichard MacCutchan10-Mar-16 2:39 
QuestionMessage Removed Pin
7-Mar-16 15:41
hanis292687-Mar-16 15:41 
Questionhow to export and import IBM DB2 table data from one database to another database using C#.net Pin
Tej_dev7-Mar-16 10:50
Tej_dev7-Mar-16 10:50 
SuggestionRe: how to export and import IBM DB2 table data from one database to another database using C#.net Pin
CHill608-Mar-16 2:25
mveCHill608-Mar-16 2:25 
AnswerRe: how to export and import IBM DB2 table data from one database to another database using C#.net Pin
Mycroft Holmes8-Mar-16 13:23
professionalMycroft Holmes8-Mar-16 13:23 
GeneralRe: how to export and import IBM DB2 table data from one database to another database using C#.net Pin
Tej_dev9-Mar-16 11:32
Tej_dev9-Mar-16 11:32 
GeneralHow to get a web site value to windows form project in c#? Pin
lulithagihan5-Mar-16 19:51
lulithagihan5-Mar-16 19:51 
GeneralRe: How to get a web site value to windows form project in c#? Pin
Pete O'Hanlon5-Mar-16 20:59
subeditorPete O'Hanlon5-Mar-16 20:59 
GeneralRe: How to get a web site value to windows form project in c#? Pin
OriginalGriff5-Mar-16 21:32
mveOriginalGriff5-Mar-16 21:32 
QuestionWhere can I find the code for my book? Pin
hmanhha5-Mar-16 10:15
hmanhha5-Mar-16 10:15 
AnswerRe: Where can I find the code for my book? Pin
Luc Pattyn5-Mar-16 10:19
sitebuilderLuc Pattyn5-Mar-16 10:19 
PraiseRe: Where can I find the code for my book? Pin
CHill605-Mar-16 14:05
mveCHill605-Mar-16 14:05 
GeneralRe: Where can I find the code for my book? Pin
Kunal Chowdhury «IN»6-Mar-16 2:09
professionalKunal Chowdhury «IN»6-Mar-16 2:09 

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.