Re: C# validating event problem for a super genius
- From: Brian Gideon <briangideon@xxxxxxxxx>
- Date: Thu, 1 May 2008 06:08:48 -0700 (PDT)
On Apr 30, 1:14 pm, "Ben Voigt [C++ MVP]" <r...@xxxxxxxxxxxxx> wrote:
Or if you want just a few controls, not the whole Form shown from the other
thread, you can call
new TextBox() or whatever control type
and read the Handle property to make sure it is created from the new thread,
then call the parent form's Controls.Add method, passing in the newly
created control.
I hadn't thought about that before. I guess I've always been using
the assumption that this would cause chaos. How would the parent form
and the child control interact seeing as they are running on separate
threads? And from a developers perspective, writing code that
accesses the child control from the parent form would be cumbersome
and slow since everything would have to be marshaled between the
threads to maintain the thread affinity requirements right?
.
- Follow-Ups:
- Re: C# validating event problem for a super genius
- From: Ben Voigt [C++ MVP]
- Re: C# validating event problem for a super genius
- Prev by Date: Re: Loading response into Iframe
- Next by Date: Re: LINQ and XML for compact framework
- Previous by thread: Reading Spool File Text Data
- Next by thread: Re: C# validating event problem for a super genius
- Index(es):
Relevant Pages
|
Loading