Print Page | Close Window

Assigning a control to a thread

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: .NET WinForms
Forum Description: Topics related to Codejock .NET Windows Forms products
URL: http://forum.codejock.com/forum_posts.asp?TID=15778
Printed Date: 26 April 2024 at 9:59pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Assigning a control to a thread
Posted By: erics44
Subject: Assigning a control to a thread
Date Posted: 04 December 2009 at 6:34am
Hi
I am struggling to understand the need and the methods of assigning a control to a thread.

How do i do that?

if i already have a control on a page and i want to call it in a thread do i need to use the invoke method?

Thanks in advance



Replies:
Posted By: VladimirKh
Date Posted: 08 January 2010 at 9:59am
< ="Content-" content="text/; charset=utf-8">< name="ProgId" content="Word.">< name="Generator" content="Microsoft Word 12">< name="Originator" content="Microsoft Word 12"> file:///C:%5CDOCUME%7E1%5CVladimir%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_colorschememapping.xml - <>
Hi,
Thread is a separate dependent process containing any code we want to run in the background.
If we want to call any method of the control asynchronously, then we have to use BeginInvoke and EndInvoke.
Here is a subject from MSDN that explains details:
file:///C:%5CDOCUME%7E1%5CVladimir%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_colorschememapping.xml - file:///C:%5CDOCUME%7E1%5CVladimir%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_colorschememapping.xml -
file:///C:%5CDOCUME%7E1%5CVladimir%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_colorschememapping.xml - ms-help://MS.MSDNQTR.v90.en/dv_fxadvance/html/38a345ca-6963-4436-9608-5c9defef9c64.htm

Regards




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net