Article View: be.comp.programming
Article #3155Re: VB.NET: thread error
From: E.N.
Date: Sat, 07 Feb 2004 14:34
Date: Sat, 07 Feb 2004 14:34
17 lines
1860 bytes
1860 bytes
"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.
Technical Details
Message-ID:
<c02stv$218h$1@beast.euro.net>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-09!supernews.com!pln-w!lotsanews.com!news2.euro.net!news.euro.net!not-for-mailReferences:
<40228a21$0$310$ba620e4c@news.skynet.be>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 06:32:34 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-09!supernews.com!pln-w!lotsanews.com!news2.euro.net!news.euro.net!not-for-mail From: "E.N." <egg@nospam.invalid> Newsgroups: be.comp.programming,nl.comp.programmeren Subject: Re: VB.NET: thread error Date: Sat, 7 Feb 2004 15:34:27 +0100 Organization: EuroNet Internet Lines: 18 Message-ID: <c02stv$218h$1@beast.euro.net> References: <40228a21$0$310$ba620e4c@news.skynet.be> NNTP-Posting-Host: asd-btv-a042.mxs.adsl.euronet.nl Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: beast.euro.net 1076164351 66833 194.134.189.66 (7 Feb 2004 14:32:31 GMT) X-Complaints-To: abuse@euronet.nl NNTP-Posting-Date: Sat, 7 Feb 2004 14:32:31 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165