Click here to Skip to main content
14,486,466 members
   

C#

 
Questionchecked DateTimePicker Pin
kaustavG23-Jul-08 1:36
MemberkaustavG23-Jul-08 1:36 
AnswerRe: checked DateTimePicker Pin
DaveyM6923-Jul-08 2:13
professionalDaveyM6923-Jul-08 2:13 
QuestionAttach event to html element Pin
mahmoud wafy23-Jul-08 1:03
Membermahmoud wafy23-Jul-08 1:03 
Questionusing Directive clarification Pin
But_Im_a_Lady23-Jul-08 0:58
MemberBut_Im_a_Lady23-Jul-08 0:58 
AnswerRe: using Directive clarification Pin
Luc Pattyn23-Jul-08 1:06
sitebuilderLuc Pattyn23-Jul-08 1:06 
GeneralRe: using Directive clarification Pin
But_Im_a_Lady23-Jul-08 1:11
MemberBut_Im_a_Lady23-Jul-08 1:11 
GeneralRe: using Directive clarification Pin
Luc Pattyn23-Jul-08 1:27
sitebuilderLuc Pattyn23-Jul-08 1:27 
QuestionUsing Threads in Windows Forms Pin
Megidolaon23-Jul-08 0:35
MemberMegidolaon23-Jul-08 0:35 
I have a program that tests DB tables. As these tests can take up to several minutes, I want to outsource them into other threads, to at least give the user to possibility to abort them/exit the application.
It's not intended that the user can execute several tests at a time, so I actually only need the main thread in which the Windows Form is running and a single worker thread that performs the test.

My main problem is that I run the test table by table in a loop and each time a table has finished testing, several dictionaries and controls are updated.
When the tests is performed by another thread, it means that the user can access the same dictionaries the testing thread is updating.

So far I just tried to get the testing thread running and allow the user to abort it but I didn't have much success yet.
I used the Windows Forms Invoke Method but that doesn't seem to help much, as the GUI still doesn't respond until the test is finished.


Could you tell me what approach would be best?

Should I use a ParameterizedThreadStart that gets passed a list of all dictionaries?

And how would I go about updating the Windows Forms controls? Create some event that is fired when a table has finished testing?


Thanks in advance.
AnswerRe: Using Threads in Windows Forms Pin
DaveyM6923-Jul-08 0:53
professionalDaveyM6923-Jul-08 0:53 
AnswerRe: Using Threads in Windows Forms Pin
MrKalinka23-Jul-08 1:00
MemberMrKalinka23-Jul-08 1:00 
AnswerRe: Using Threads in Windows Forms Pin
Megidolaon24-Jul-08 4:28
MemberMegidolaon24-Jul-08 4:28 
GeneralRe: Using Threads in Windows Forms Pin
DaveyM6925-Jul-08 11:50
professionalDaveyM6925-Jul-08 11:50 
AnswerRe: Using Threads in Windows Forms Pin
Megidolaon29-Jul-08 21:46
MemberMegidolaon29-Jul-08 21:46 
Questionpivot table not showing any data Pin
Shuaib wasif khan23-Jul-08 0:18
MemberShuaib wasif khan23-Jul-08 0:18 
AnswerRepost of earlier questions. Pin
Pete O'Hanlon23-Jul-08 2:09
subeditorPete O'Hanlon23-Jul-08 2:09 
QuestionXML comparision Pin
Princeyuva23-Jul-08 0:16
MemberPrinceyuva23-Jul-08 0:16 
AnswerRe: XML comparision Pin
led mike23-Jul-08 5:03
Memberled mike23-Jul-08 5:03 
Questionchecked dateTimePicker Pin
kaustavG23-Jul-08 0:13
MemberkaustavG23-Jul-08 0:13 
AnswerRe: checked dateTimePicker Pin
DaveyM6923-Jul-08 0:19
professionalDaveyM6923-Jul-08 0:19 
AnswerRe: checked dateTimePicker Pin
Aaron849823-Jul-08 5:27
MemberAaron849823-Jul-08 5:27 
Questionretrieving the flag value of one form in other Pin
preetpal23-Jul-08 0:00
Memberpreetpal23-Jul-08 0:00 
AnswerRe: retrieving the flag value of one form in other Pin
DaveyM6923-Jul-08 0:12
professionalDaveyM6923-Jul-08 0:12 
AnswerRe: retrieving the flag value of one form in other Pin
Elroy Dsilva23-Jul-08 0:57
MemberElroy Dsilva23-Jul-08 0:57 
QuestionGlade , monodevelop or sharpdevelop Pin
adnane22-Jul-08 23:58
Memberadnane22-Jul-08 23:58 
AnswerRe: Glade , monodevelop or sharpdevelop Pin
Simon P Stevens23-Jul-08 1:57
MemberSimon P Stevens23-Jul-08 1:57 

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.