Click here to Skip to main content
15,918,808 members
Home / Discussions / C#
   

C#

 
AnswerRe: behavior of Windows.Forms.Timer vs WM_TIMER Pin
Rob Philpott25-Feb-10 6:57
Rob Philpott25-Feb-10 6:57 
GeneralRe: behavior of Windows.Forms.Timer vs WM_TIMER Pin
manustone25-Feb-10 11:36
manustone25-Feb-10 11:36 
GeneralRe: behavior of Windows.Forms.Timer vs WM_TIMER Pin
Paulo Zemek26-Feb-10 3:02
Paulo Zemek26-Feb-10 3:02 
Questionfree c#.net slider without using javascript Pin
heidi stapel25-Feb-10 5:38
heidi stapel25-Feb-10 5:38 
AnswerRe: free c#.net slider without using javascript Pin
Saksida Bojan25-Feb-10 6:02
Saksida Bojan25-Feb-10 6:02 
GeneralRe: free c#.net slider without using javascript Pin
heidi stapel25-Feb-10 6:07
heidi stapel25-Feb-10 6:07 
AnswerRe: free c#.net slider without using javascript Pin
Not Active25-Feb-10 8:07
mentorNot Active25-Feb-10 8:07 
QuestionHow come another thread can update main controls without invoking them? [modified] Pin
yeah100025-Feb-10 4:41
yeah100025-Feb-10 4:41 
Hi,
i have a strange problem. I can update any main thread control from a different thread without any cross thread exceptions. I can change the text of a textbox from the thread and from any button click handler in main thread. What are the possible causes of this kind of behavior? Can it somehow remember that i have used invoke on the controls?

When i do the exact same thing in a new project i get the crossthread exception.
An illustration of what i mean:

private void button1_Click(object sender, EventArgs e)
{
Thread someThread = new Thread(Threadfun);
someThread.Start();

}
private void Threadfun()
{
label1.Text = "hello";
}
ty
modified on Thursday, February 25, 2010 10:50 AM

AnswerRe: How come another thread can update main controls without invoking them? Pin
Saksida Bojan25-Feb-10 5:00
Saksida Bojan25-Feb-10 5:00 
AnswerMessage Closed Pin
25-Feb-10 5:27
stancrm25-Feb-10 5:27 
GeneralRe: How come another thread can update main controls without invoking them? Pin
yeah100025-Feb-10 5:57
yeah100025-Feb-10 5:57 
GeneralRe: How come another thread can update main controls without invoking them? Pin
Saksida Bojan25-Feb-10 6:16
Saksida Bojan25-Feb-10 6:16 
GeneralRe: How come another thread can update main controls without invoking them? Pin
Luc Pattyn25-Feb-10 6:35
sitebuilderLuc Pattyn25-Feb-10 6:35 
AnswerRe: How come another thread can update main controls without invoking them? Pin
Rob Philpott25-Feb-10 7:06
Rob Philpott25-Feb-10 7:06 
GeneralRe: How come another thread can update main controls without invoking them? Pin
Luc Pattyn25-Feb-10 7:35
sitebuilderLuc Pattyn25-Feb-10 7:35 
QuestionDelegates Pin
Rahul Babu25-Feb-10 3:54
Rahul Babu25-Feb-10 3:54 
AnswerRe: Delegates Pin
Keith Barrow25-Feb-10 4:00
professionalKeith Barrow25-Feb-10 4:00 
AnswerRe: Delegates Pin
Saksida Bojan25-Feb-10 4:03
Saksida Bojan25-Feb-10 4:03 
AnswerRe: Delegates Pin
harold aptroot25-Feb-10 4:11
harold aptroot25-Feb-10 4:11 
GeneralRe: Delegates Pin
harold aptroot25-Feb-10 6:51
harold aptroot25-Feb-10 6:51 
AnswerRe: Delegates Pin
Som Shekhar25-Feb-10 5:45
Som Shekhar25-Feb-10 5:45 
AnswerRe: Delegates Pin
PIEBALDconsult25-Feb-10 6:21
mvePIEBALDconsult25-Feb-10 6:21 
AnswerRe: Delegates Pin
AspDotNetDev25-Feb-10 10:39
protectorAspDotNetDev25-Feb-10 10:39 
GeneralRe: Delegates Pin
Dave Kreskowiak25-Feb-10 11:01
mveDave Kreskowiak25-Feb-10 11:01 
GeneralRe: Delegates Pin
AspDotNetDev25-Feb-10 11:10
protectorAspDotNetDev25-Feb-10 11:10 

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.