Re: Dead horse, beat a

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Chris Tacke, eMVP (ctacke_at_spamfree-opennetcf.org)
Date: 01/24/05


Date: Mon, 24 Jan 2005 11:09:20 -0500

Not at all. Use one form as the "main" form, a form who'd instance will
always exist and host the application message pump. In my apps it's
typically the first app form shown that isn't a login or splash screen. So
ApplicationEx.Run(mainForm) is the app entry from Main. In that Form's ctor
I do any splashing or authentication.

-- 
<ctacke/>
www.OpenNETCF.org
Your CF searches start and end here
"Harry Simpson" <hssimpson@phgt.net> wrote in message 
news:uq$IP0iAFHA.608@TK2MSFTNGP15.phx.gbl...
> So Chris and Daniel,
>
> I really need to only have one form.  All other items resembling a "form" 
> would be panels shown or hidden?
> Is this correct?
>
> Harry
>
> "Harry Simpson" <hssimpson@phgt.net> wrote in message 
> news:ucCVO5AAFHA.824@TK2MSFTNGP11.phx.gbl...
>> Thanks Daniel,
>>
>> I've read several CF books but I don't think any of them but this in that 
>> context.  That makes a lot of sense and is probably why I've had so much 
>> grief between two separate forms!!
>>
>> In all the examples it's usually one form and coming from Web Forms and 
>> Windows Forms it's a different animal.
>>
>> Harry
>>
>> "Daniel Moth" <dmoth74@hotmail.com> wrote in message 
>> news:eX1Z5fAAFHA.3472@TK2MSFTNGP14.phx.gbl...
>>> The model of .NET WinForms is that there is a main form and others are 
>>> spawned from it. When you need to close the app, you have to close the 
>>> main form. You can design your app to fit with that model (rather than 
>>> try to make the 2nd form the master at runtime).
>>>
>>> If you really want to do what you ask, you could pass the first form to 
>>> the second so it has access to the first's data (in case I wasn't clear, 
>>> I would not recommend that). So change/add the ctor of the 2nd form to 
>>> take the first form as an argument.
>>>
>>> Cheers
>>> Daniel
>>> --
>>> http://www.danielmoth.com/Blog/
>>>
>>>
>>> "Harry Simpson" <hssimpson@phgt.net> wrote in message 
>>> news:uo7fPcAAFHA.3504@TK2MSFTNGP12.phx.gbl...
>>>> I've got two forms.  One hides when the second is created and shown. I 
>>>> want to be able to close processes/threads in the first form from code 
>>>> in the second form in the overidden OnClosing event in case the user 
>>>> presses the OK on the form to completely shut the form and app down.
>>>>
>>>> Whenever I try to address the other form i get little to work with and 
>>>> can't programmatically address controls on the hidden/minimized form. 
>>>> How can i do that?
>>>>
>>>> TIA
>>>> Harry
>>>>
>>>
>>
>>
>
> 


Relevant Pages

  • Re: Dead horse, beat a
    ... context. ... Harry ... You can design your app to fit with that model (rather than try ... > the first form as an argument. ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Apparating Harry SPOILERS OOP/HBP
    ... > came to take Harry to Grimmauld Place in OOP. ... >> Along Apping for those with kids who can't App. ... > Priced Book" is the Horcrux thingy. ... Stupid,Dishonest, and fond of Old Odgen's firewhiskey. ...
    (alt.fan.harry-potter)
  • Re: Apparating Harry SPOILERS OOP/HBP
    ... > came to take Harry to Grimmauld Place in OOP. ... >> Along Apping for those with kids who can't App. ... Be polight and use spoilers. ... There are also readers that show up ...
    (alt.fan.harry-potter)
  • Re: Apparating Harry SPOILERS OOP/HBP
    ... >came to take Harry to Grimmauld Place in OOP. ... >> Along Apping for those with kids who can't App. ... >Priced Book" is the Horcrux thingy. ... Perhaps some Prunes or Prune Juice would help you out. ...
    (alt.fan.harry-potter)
  • Re: Apparating Harry SPOILERS OOP/HBP
    ... > When the Van Guard came to take Harry to Grimmauld Place in OOP. ... > Along Apping for those with kids who can't App. ... How come Lupin ... Like me saying Hoppers ...
    (alt.fan.harry-potter)