Re: Opening up windows form with muliple threads by Sajjad
Sajjad
Sun Sep 18 09:54:05 CDT 2005
Thanks,
i tried with Application.Run and its working fine now.
Thanks for your help.
Sajjad
""Jeffrey Tan[MSFT]"" <v-jetan@online.microsoft.com> wrote in message
news:rXBbgVmuFHA.3552@TK2MSFTNGXA01.phx.gbl...
> Hi Sajjad,
>
> Thanks for your post.
>
> Yes, for Windows GUI application to live, we must provide a message loop
> for it, then only when WM_QUIT comes, our application will reside in the
> message loop without thread existed. Message loop is thread-specific, that
> is if we create different forms on different threads, we have to provide
> every thread a message loop.
> Without having a message loop in the thread procedure, after creating the
> form, the thread procedure will exist, so the form will not appear at all.
>
> In .Net Winform, we can startup the message loop with Application.Run
> method.
>
> If this still does not resolve your problem, please provide some code
> snippet for us to reproduce out your problem. Thanks
>
> Best regards,
> Jeffrey Tan
> Microsoft Online Partner Support
> Get Secure! - www.microsoft.com/security
> This posting is provided "as is" with no warranties and confers no rights.
>