Unfortunately, the scenario that you are trying to implement is not really
supported in V1. The problem is that the .NET Compact Framework has a quite
week support for multithreading in GUI. Though, this problem has been fixed
in V2. I wrote a simple application that implements your scenario and it
worked just fine when I ran it against the .NET Compact Framework V2.
Thank you,
Sergiy.
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
| From: (e-mail address removed) (DM)
| Newsgroups: microsoft.public.dotnet.framework.compactframework
| Subject: Re: two windows & 2 threads
| Date: 14 Sep 2004 01:25:38 -0700
| Organization:
http://groups.google.com
| Lines: 32
| Message-ID: <
[email protected]>
| References: <
[email protected]>
<
[email protected]>
<
[email protected]>
<
[email protected]>
<
[email protected]>
<
[email protected]>
| NNTP-Posting-Host: 83.31.243.186
| Content-Type: text/plain; charset=ISO-8859-1
| Content-Transfer-Encoding: 8bit
| X-Trace: posting.google.com 1095150339 15137 127.0.0.1 (14 Sep 2004
08:25:39 GMT)
| X-Complaints-To: (e-mail address removed)
| NNTP-Posting-Date: Tue, 14 Sep 2004 08:25:39 +0000 (UTC)
| Path:
cpmsftngxa06.phx.gbl!cpmsftngxa10.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08
phx.gbl!newsfeed00.sul.t-online.de!t-online.de!news.glorb.com!postnews2.goo
gle.com!not-for-mail
| Xref: cpmsftngxa06.phx.gbl
microsoft.public.dotnet.framework.compactframework:61138
| X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
|
| (e-mail address removed) (Serg Kuryata [MS]) wrote in message
| > What are those windows? Are they just two forms? Please could you post
some
| > code that shows how you create and show them?
| >
| The first form is created in standard way (i.e. code generated by VS
| .NET )
|
| This is the how I create another from and I don't see anything odd
| in this code:
|
| class ModStatus
| {
| ....
| public void Run()
| {
| new Thread(new ThreadStart(this.Start)).Start();
| }
| private void Start()
| {
| Application.Run( new ModStatusForm(this) );
| }
| ....
| }
|
| Of course ModStatusForm inherits after System.Windows.Form.
| The twirling circle (sorry, I don't know hot it is called ) appears
| when the form (i.e. thread with message pump) which actually calls
| ModStatus.Run has focus.
|
|
| --
| DM
|