Article View: be.comp.programming
Article #3156Re: VB.NET: thread error
From: Snuyt
Date: Sat, 07 Feb 2004 17:33
Date: Sat, 07 Feb 2004 17:33
26 lines
2008 bytes
2008 bytes
E.N. wrote: > "Snuyt" <snuyt_nospam@skynet.be> wrote in message > news:40228a21$0$310$ba620e4c@news.skynet.be... > >>Hallo, >> >>Ik heb een client-serverprogrammatje. Hieronder staat een uittreksel >>(vereenvoudigd) van mijn clientcode. In de sub DRAW_AN_IMAGE probeer ik >>een picturebox toe te voegen aan de Form, maar dat lukt niet, hij geeft >>als error: >>"Controls created on one thread cannot be parented to a control on a >>different thread." >>op de lijn : Me.Controls.Add(p) >> >>Weet er iemand wat ik hieraan kan doen? >> > > > Ja, de main thread (die van je form) moet je het grafische werk laten doen. > De ander threads niet. Dit is een vrij logische beperking. > Als het zo is, dan is het zo, maar wat is daar zo logisch aan? Snuyt
Technical Details
Message-ID:
<4025217d$0$7037$ba620e4c@news.skynet.be>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-08!supernews.com!news.maxwell.syr.edu!skynet.be!skynet.be!louie!tjb!not-for-mailReferences:
<40228a21$0$310$ba620e4c@news.skynet.be> <c02stv$218h$1@beast.euro.net>Show Full Headers
Complete Article Headers
X-Google-Language: DUTCH,ASCII-7-bit X-Google-Thread: 107324,27c8cf66f3bc38b5 X-Google-Attributes: gid107324,public X-Google-Thread: fcea4,27c8cf66f3bc38b5 X-Google-Attributes: gidfcea4,public X-Google-ArrivalTime: 2004-02-07 09:33:52 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-08!supernews.com!news.maxwell.syr.edu!skynet.be!skynet.be!louie!tjb!not-for-mail Date: Sat, 07 Feb 2004 18:33:52 +0100 From: Snuyt <snuyt_nospam@skynet.be> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5) Gecko/20031007 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: be.comp.programming,nl.comp.programmeren Subject: Re: VB.NET: thread error References: <40228a21$0$310$ba620e4c@news.skynet.be> <c02stv$218h$1@beast.euro.net> In-Reply-To: <c02stv$218h$1@beast.euro.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Lines: 27 Message-ID: <4025217d$0$7037$ba620e4c@news.skynet.be> Organization: -= Belgacom Usenet Service =- NNTP-Posting-Host: 81.240.94.68 X-Trace: DXC=E587VGPcSUGOgi3CWLckLDi98m_9@L0lG1XhdhRZ;<4GoY2;fb5\c[NG`OIN[16WYN0NjV>SXa8FBVTVRn6]UOhM X-Complaints-To: usenet-abuse@skynet.be