Results 1 to 10 of 13
Hybrid View
-
5th Jul 2010, 06:57 PM #1Respected Developer
Your form runs on a different thread so you can't call members just like that. If it's a normal winforms application you can use the Invoke method.
For example:
Code:// some code running in a new thread // change the text of a label on a form: this.Invoke(() => this.lblTest.Text = "my string");
Hyperz Reviewed by Hyperz on . [C#] Thread Safe in - How to? heya guys Im working on a C# Application and im having some issues with the ThreadSafe thingimabob. When i try execute the a command i get the Thread not safe. heres my Code! using System; Rating: 5
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
there is more then 1 million thread in a forum but showing 0 thread 0 post
By anandimhere in forum vBulletinReplies: 2Last Post: 23rd May 2012, 07:46 AM -
Specific Wordpress thread is taking me to my main website instead of that thread
By happyvalentine in forum WordpressReplies: 2Last Post: 13th Nov 2011, 12:23 PM -
Thread Closing & Thread Titles
By Loget in forum News and AnnouncementsReplies: 1Last Post: 6th Sep 2011, 07:22 AM -
can post new thread or reply on thread
By [AcE] in forum Technical Help Desk SupportReplies: 3Last Post: 25th May 2011, 06:07 AM -
Which Is Safe PP/LR/MB
By EsotorisK in forum OtherReplies: 34Last Post: 13th Feb 2010, 02:30 PM
themaLeecher - leech and manage...
Version 5.03 released. Open older version (or...