Click here to Skip to main content
15,896,557 members
Home / Discussions / C#
   

C#

 
AnswerRe: Help Symbian Coding + C# Pin
Shameel26-Feb-12 20:12
professionalShameel26-Feb-12 20:12 
QuestionRe: Help Symbian Coding + C# Pin
jojoba201126-Feb-12 23:20
jojoba201126-Feb-12 23:20 
AnswerRe: Help Symbian Coding + C# Pin
Dave Kreskowiak27-Feb-12 2:02
mveDave Kreskowiak27-Feb-12 2:02 
GeneralRe: Help Symbian Coding + C# Pin
Pete O'Hanlon27-Feb-12 2:08
mvePete O'Hanlon27-Feb-12 2:08 
GeneralRe: Help Symbian Coding + C# Pin
Dave Kreskowiak27-Feb-12 2:11
mveDave Kreskowiak27-Feb-12 2:11 
QuestionRe: Help Symbian Coding + C# Pin
jojoba201127-Feb-12 3:52
jojoba201127-Feb-12 3:52 
AnswerRe: Help Symbian Coding + C# Pin
Pete O'Hanlon27-Feb-12 3:55
mvePete O'Hanlon27-Feb-12 3:55 
Questionget and update control values from another thread Pin
Danzy8326-Feb-12 12:41
Danzy8326-Feb-12 12:41 
Hi everyone! I'm having problem accessing values of controls from a different thread that did not create them. The code is long and so I will give a clear explanation of the problem.

I have a Windows Form that gets data to be stored in a database. Because I do not want the main window to hang, I have written the code that stores the data in the database in a different thread. When the new thread is started, the main thread shows a dialog control with animated image showing that the data is being processed. When the worker thread completes, the animated dialog control closes and the main thread contines execution.

Thus, when the animated dialog control is shown, the main thread waits for the worker thread to complete for the outcome of the processing before continuing or aborting depending on the outcome from the workert thread. However, the problem:

Because the worker thread did not create the controls, I'm finding it difficult to access the values of the controls on the Form. Using Control.Invoke is also not helping because the main thread has a an animated dialog control shown and waiting for data processing status from the worker thread.

I don't know how to access and update values of the controls. Any better way to solve this problem? Thanks in advance.
AnswerRe: get and update control values from another thread Pin
agha_ali2226-Feb-12 17:48
agha_ali2226-Feb-12 17:48 
AnswerRe: get and update control values from another thread Pin
Dave Kreskowiak26-Feb-12 18:06
mveDave Kreskowiak26-Feb-12 18:06 
AnswerRe: get and update control values from another thread Pin
Shameel26-Feb-12 23:33
professionalShameel26-Feb-12 23:33 
QuestionHelp with impersonation please Pin
CCodeNewbie26-Feb-12 5:42
CCodeNewbie26-Feb-12 5:42 
QuestionRe: Help with impersonation please Pin
Richard MacCutchan26-Feb-12 6:05
mveRichard MacCutchan26-Feb-12 6:05 
AnswerRe: Help with impersonation please Pin
CCodeNewbie26-Feb-12 6:46
CCodeNewbie26-Feb-12 6:46 
GeneralRe: Help with impersonation please Pin
Richard MacCutchan26-Feb-12 6:54
mveRichard MacCutchan26-Feb-12 6:54 
GeneralRe: Help with impersonation please Pin
CCodeNewbie26-Feb-12 7:41
CCodeNewbie26-Feb-12 7:41 
AnswerRe: Help with impersonation please Pin
Luc Pattyn26-Feb-12 7:39
sitebuilderLuc Pattyn26-Feb-12 7:39 
GeneralRe: Help with impersonation please Pin
CCodeNewbie26-Feb-12 10:10
CCodeNewbie26-Feb-12 10:10 
AnswerRe: Help with impersonation please Pin
Luc Pattyn26-Feb-12 6:14
sitebuilderLuc Pattyn26-Feb-12 6:14 
GeneralRe: Help with impersonation please Pin
CCodeNewbie26-Feb-12 6:53
CCodeNewbie26-Feb-12 6:53 
QuestionConverting audio file into a binary display Pin
kfir.alf26-Feb-12 3:20
kfir.alf26-Feb-12 3:20 
AnswerRe: Converting audio file into a binary display Pin
OriginalGriff26-Feb-12 4:12
mveOriginalGriff26-Feb-12 4:12 
GeneralRe: Converting audio file into a binary display Pin
kfir.alf26-Feb-12 4:56
kfir.alf26-Feb-12 4:56 
GeneralRe: Converting audio file into a binary display Pin
Eddy Vluggen26-Feb-12 11:11
professionalEddy Vluggen26-Feb-12 11:11 
GeneralRe: Converting audio file into a binary display Pin
V.26-Feb-12 21:14
professionalV.26-Feb-12 21:14 

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.