Click here to Skip to main content
15,914,162 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralControlling XML Serialisation Pin
moredip23-Feb-03 1:53
moredip23-Feb-03 1:53 
GeneralResources in ASP.NET Controls Pin
bdehamer21-Feb-03 12:23
bdehamer21-Feb-03 12:23 
QuestionIs ADO exposable via Web Services? Pin
Chopper20-Feb-03 10:22
Chopper20-Feb-03 10:22 
AnswerRe: Is ADO exposable via Web Services? Pin
David Stone20-Feb-03 10:41
sitebuilderDavid Stone20-Feb-03 10:41 
GeneralRe: Is ADO exposable via Web Services? Pin
Chopper20-Feb-03 11:02
Chopper20-Feb-03 11:02 
GeneralRe: Is ADO exposable via Web Services? Pin
David Stone21-Feb-03 18:04
sitebuilderDavid Stone21-Feb-03 18:04 
GeneralHelp Please: ComboBox Control in WinForm Datagrid Control Pin
DionChen19-Feb-03 5:04
DionChen19-Feb-03 5:04 
Generalsnap-ins in .NET Pin
Mahdi Sadegh18-Feb-03 2:04
Mahdi Sadegh18-Feb-03 2:04 
GeneralDatagrid and Dataset questions Pin
DionChen17-Feb-03 4:02
DionChen17-Feb-03 4:02 
GeneralTristate Check Boxes in TreeView Pin
Scott Lee16-Feb-03 16:00
Scott Lee16-Feb-03 16:00 
GeneralDHTMLEdit vs. MSHTML Pin
Jonas Follesø16-Feb-03 15:32
Jonas Follesø16-Feb-03 15:32 
GeneralInvalidCastException from remote object that use COM Pin
itay_k16-Feb-03 4:47
itay_k16-Feb-03 4:47 
GeneralHelpProvider Control question Pin
DionChen14-Feb-03 4:19
DionChen14-Feb-03 4:19 
GeneralProblem in logging the error Redist Dot Net Setup Pin
RupangDesai13-Feb-03 23:13
RupangDesai13-Feb-03 23:13 
GeneralAccessing a network .mdb from Windows Service Pin
Jamie Nordmeyer13-Feb-03 7:44
Jamie Nordmeyer13-Feb-03 7:44 
GeneralRe: Accessing a network .mdb from Windows Service Pin
Stephane Rodriguez.13-Feb-03 7:50
Stephane Rodriguez.13-Feb-03 7:50 
GeneralRe: Accessing a network .mdb from Windows Service Pin
Jamie Nordmeyer13-Feb-03 7:57
Jamie Nordmeyer13-Feb-03 7:57 
GeneralRe: Accessing a network .mdb from Windows Service Pin
leppie14-Feb-03 6:17
leppie14-Feb-03 6:17 
GeneralRe: Accessing a network .mdb from Windows Service Pin
Jamie Nordmeyer14-Feb-03 9:36
Jamie Nordmeyer14-Feb-03 9:36 
GeneralRe: Accessing a network .mdb from Windows Service Pin
Richard Deeming14-Feb-03 0:00
mveRichard Deeming14-Feb-03 0:00 
GeneralRe: Accessing a network .mdb from Windows Service Pin
Jamie Nordmeyer14-Feb-03 9:20
Jamie Nordmeyer14-Feb-03 9:20 
GeneralIP performance counter in .NET Pin
princedom13-Feb-03 6:37
princedom13-Feb-03 6:37 
GeneralMultiple UI Threads, One .NET App Pin
jjreilly12-Feb-03 6:00
jjreilly12-Feb-03 6:00 
I submitted the following to the microsoft.public.dotnet.framework.windowsforms newsgroup:

I've seen a number of posts about threads, forms and controls. I
realize that you shouldn't operate directly on a control from a thread that isn't the control's creating UI thread.

What I want to know is this. In the old Win32 days, your application could create multiple what-they-call UI threads. Each thread had a message pump. You could create a window (say your frame window) on one thread, and create a child window on another thread. The messages for each window would be handled in the context of the window's creating thread.

Some posts have said you can't do that in .NET. Well, I did it.
And it sort of worked.

I created a normal C# Win Forms app. I created another thread. This new thread created a couple of controls. The key is that the
framework prevents you from using the controls's and form's Parent
property to properly hook up the window hierarchy. But you can get
the handles to the form and the controls, and you can call the Win32 SetParent API to hook them up. This works and I can handle events in the proper thread context.

I tried it using a PictureBox control and got a strange result. The strange result was that the picture box control "disappeared" if I set the BorderStyle to anything other than None. I mean, if I look for the picture box in Spy++, the window was real gone, man.

I'm hoping to have some uSoft wizard tell me a couple of things.
First, can I really not use the 1.0 framework to have multiple UI
threads, where one UI thread serves child windows of another UI
thread? Second, any idea why my experience with picture box half
worked?

Thanks. Isn't this interesting???

john.
GeneralRe: Multiple UI Threads, One .NET App Pin
Stephane Rodriguez.12-Feb-03 8:08
Stephane Rodriguez.12-Feb-03 8:08 
GeneralRe: Multiple UI Threads, One .NET App Pin
jjreilly13-Feb-03 6:14
jjreilly13-Feb-03 6:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.