Click here to Skip to main content
15,904,297 members
Home / Discussions / C#
   

C#

 
Questionconvert types from IronPython to C# Pin
lune1226-Feb-12 22:19
lune1226-Feb-12 22:19 
AnswerRe: convert types from IronPython to C# Pin
Abhinav S26-Feb-12 23:32
Abhinav S26-Feb-12 23:32 
AnswerRe: convert types from IronPython to C# Pin
Sentenryu28-Feb-12 0:08
Sentenryu28-Feb-12 0:08 
GeneralRe: convert types from IronPython to C# Pin
lune1228-Feb-12 0:55
lune1228-Feb-12 0:55 
QuestionContext menu not shown in windows 7 Pin
iamdking26-Feb-12 21:05
iamdking26-Feb-12 21:05 
Questionhow to USB(Pen drive)Read only in C#.net Pin
Member 859750326-Feb-12 19:44
Member 859750326-Feb-12 19:44 
AnswerRe: how to USB(Pen drive)Read only in C#.net Pin
Abhinav S26-Feb-12 20:14
Abhinav S26-Feb-12 20:14 
AnswerRe: how to USB(Pen drive)Read only in C#.net Pin
Eddy Vluggen26-Feb-12 23:20
professionalEddy Vluggen26-Feb-12 23:20 
Questionquation Pin
hareesh goud26-Feb-12 18:23
hareesh goud26-Feb-12 18:23 
AnswerRe: quation PinPopular
Dave Kreskowiak26-Feb-12 18:40
mveDave Kreskowiak26-Feb-12 18:40 
AnswerRe: quation Pin
Abhinav S26-Feb-12 20:15
Abhinav S26-Feb-12 20:15 
QuestionHelp Symbian Coding + C# Pin
jojoba201126-Feb-12 18:08
jojoba201126-Feb-12 18:08 
AnswerRe: Help Symbian Coding + C# Pin
Dave Kreskowiak26-Feb-12 18:42
mveDave Kreskowiak26-Feb-12 18:42 
QuestionHelp Symbian Coding + C# Pin
jojoba201126-Feb-12 19:00
jojoba201126-Feb-12 19:00 
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 

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.