Re: Forms Creation Question
From: Peter Foot [MVP] (feedback_at_no-spam.inthehand.com)
Date: 11/15/04
- Next message: AMI: "Checking SQLCE version"
- Previous message: Aaron: "Re: Forms Creation Question"
- In reply to: Aaron: "Re: Forms Creation Question"
- Next in thread: Aaron: "Re: Forms Creation Question"
- Reply: Aaron: "Re: Forms Creation Question"
- Reply: Jan Yeh_eMVP: "Re: Forms Creation Question"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 15 Nov 2004 22:58:07 -0000
Because the task manager on Pocket PC doesn't actually enumerate the
processes on the device, it merely creates a list of the captions of all the
visible top level forms. You can work around this by setting the caption to
nothing "" when in the background so only your current form will appear.
Peter
--
Peter Foot
Windows Embedded MVP
www.inthehand.com | www.opennetcf.org
"Aaron" <ABieberitz@charter.net> wrote in message
news:10picnbqhrgq938@corp.supernews.com...
> OK, while that makes sense, I still don't understand why each instance of
> a
> form creates a separate task on a PPC. I have an Ipaq 5555 and using
> ITask
> I show tons of instances of my app opened, only because a bunch of forms
> were created when I launched them throughout the process of testing my
> app.
> I was always use to eMbedded Visual Basic which created only one instance
> of
> your app, regardless of how many forms were launched. I need to know if
> there is a way to rectify this problem as my client will not be happy to
> see
> this type of thing happening.
>
> Another question is why when I call this code to close out my form:
>
> frmPSA.GetInstance().Close();
>
> it does nothing, essentially locking my app up, but not literally, and I
> have even added the following code to my forms since they use the
> singleton
> method:
> protected override void OnClosed(EventArgs e)
>
> {
>
> base.OnClosed(e);
>
> instance = null;
>
> }
>
> can anyone give me assistance on either of these matters?
>
> "Tim Wilson" <TIM(UNDERSCORE)WILSON(AT)ROGERS(PERIOD)COM> wrote in message
> news:uQIgL11yEHA.1932@TK2MSFTNGP09.phx.gbl...
>> Default instances of Forms do not exist. You must create an instance of a
>> Form before showing it.
>>
>> --
>> Tim Wilson
>> .Net Compact Framework MVP
>>
>> "Aaron" <ABieberitz@charter.net> wrote in message
>> news:10pi8t5n21ldd72@corp.supernews.com...
>> > I need to know whether or not every form for a project in all
>> > namespaces
>> is
>> > created when an application is launched or not. I'm using the
>> > singleton
>> > method now for my forms and I'm not sure why, but sometimes the
> emulator
>> is
>> > crashing saying it's low on memory when I try opening and closing
>> > forms...still haven't pinpointed exactly what situation it happens
> under,
>> > but if I know that the forms are all created and reside in memory at
>> > startup, this would help diagnose the potential problem. Once I get
>> > the
>> > answer to this question, I'll probably have more until I get this forms
>> > thing down in C#, but I need to know this first.
>> >
>> > Thanks
>> >
>> >
>>
>>
>
>
- Next message: AMI: "Checking SQLCE version"
- Previous message: Aaron: "Re: Forms Creation Question"
- In reply to: Aaron: "Re: Forms Creation Question"
- Next in thread: Aaron: "Re: Forms Creation Question"
- Reply: Aaron: "Re: Forms Creation Question"
- Reply: Jan Yeh_eMVP: "Re: Forms Creation Question"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
Loading