Click here to Skip to main content
15,895,709 members
Home / Discussions / C#
   

C#

 
QuestionRe: showing form from thread Pin
wasifmuneer13-May-10 1:45
wasifmuneer13-May-10 1:45 
AnswerRe: showing form from thread Pin
Sunshine Always13-May-10 2:09
Sunshine Always13-May-10 2:09 
AnswerRe: showing form from thread Pin
Luc Pattyn13-May-10 3:21
sitebuilderLuc Pattyn13-May-10 3:21 
AnswerRe: showing form from thread Pin
The Man from U.N.C.L.E.13-May-10 3:47
The Man from U.N.C.L.E.13-May-10 3:47 
GeneralRe: showing form from thread Pin
Sunshine Always14-May-10 1:41
Sunshine Always14-May-10 1:41 
GeneralRe: showing form from thread Pin
The Man from U.N.C.L.E.14-May-10 3:26
The Man from U.N.C.L.E.14-May-10 3:26 
AnswerRe: showing form from thread Pin
DaveyM6913-May-10 5:31
professionalDaveyM6913-May-10 5:31 
GeneralRe: showing form from thread Pin
The Man from U.N.C.L.E.13-May-10 6:43
The Man from U.N.C.L.E.13-May-10 6:43 
It works, but ugh!

The main message loop that started Form1 will end when that closes, fire any application clean-up code you wrote and leave Form2 orphaned.

It is a bit like firing up another application using Process.Start. Form2 would have to be treated as a separate application and the start thread must do all the usual stuff you need to run, and shut down an application. On the down side, they would reside in the same AppDomain and a crash in either thread would then kill both, also communication between the parts would be a nightmare.

I'm not sure how they manage it, but I guess Office does something similar for Word and Excel etc. where it appears to fire up a new instance of Word for each document, and they can be closed independently, however only one process is running.

Interestingly in the browser world things are moving the other way, eg. Google Chrome runs each tab in a separate Process, so you get one apparent application but multiple processes!
If you have knowledge, let others light their candles at it.
Margaret Fuller (1810 - 1850)
[My Articles]  [My Website]

GeneralRe: showing form from thread Pin
DaveyM6913-May-10 9:24
professionalDaveyM6913-May-10 9:24 
AnswerRe: showing form from thread Pin
#realJSOP13-May-10 6:28
mve#realJSOP13-May-10 6:28 
AnswerRe: showing form from thread Pin
AspDotNetDev13-May-10 11:31
protectorAspDotNetDev13-May-10 11:31 
GeneralRe: showing form from thread Pin
Dave Kreskowiak13-May-10 12:48
mveDave Kreskowiak13-May-10 12:48 
GeneralRe: showing form from thread Pin
AspDotNetDev13-May-10 18:18
protectorAspDotNetDev13-May-10 18:18 
GeneralRe: showing form from thread Pin
Dave Kreskowiak13-May-10 18:47
mveDave Kreskowiak13-May-10 18:47 
GeneralRe: showing form from thread Pin
AspDotNetDev13-May-10 18:49
protectorAspDotNetDev13-May-10 18:49 
GeneralRe: showing form from thread Pin
Dave Kreskowiak13-May-10 19:25
mveDave Kreskowiak13-May-10 19:25 
GeneralRe: showing form from thread Pin
The Man from U.N.C.L.E.13-May-10 22:34
The Man from U.N.C.L.E.13-May-10 22:34 
GeneralRe: showing form from thread Pin
The Man from U.N.C.L.E.13-May-10 22:43
The Man from U.N.C.L.E.13-May-10 22:43 
QuestionShowFileDialog In Console Pin
noamtzu0013-May-10 0:00
noamtzu0013-May-10 0:00 
AnswerRe: ShowFileDialog In Console Pin
Michel Godfroid13-May-10 0:36
Michel Godfroid13-May-10 0:36 
GeneralRe: ShowFileDialog In Console Pin
Luc Pattyn13-May-10 3:30
sitebuilderLuc Pattyn13-May-10 3:30 
RantRe: ShowFileDialog In Console Pin
Michel Godfroid13-May-10 4:13
Michel Godfroid13-May-10 4:13 
GeneralRe: ShowFileDialog In Console Pin
Luc Pattyn13-May-10 4:40
sitebuilderLuc Pattyn13-May-10 4:40 
GeneralRe: ShowFileDialog In Console Pin
Michel Godfroid13-May-10 5:06
Michel Godfroid13-May-10 5:06 
GeneralRe: ShowFileDialog In Console Pin
Luc Pattyn13-May-10 5:13
sitebuilderLuc Pattyn13-May-10 5:13 

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.