Re: Off topic WCF question

Chris Bordeman <[email protected]> Wed, 15 Aug 2007 16:17:14 -0500
Newsgroups gmane.comp.windows.devel.dotnet.winforms
Message-ID <[email protected]>
Never mind, think I got it.  OperationContext.Current.Host. 

-----Original Message-----
From: Discussion forum for developers using Windows Forms to build apps
and controls [mailto:[email protected]] On Behalf Of
Chris Bordeman
Sent: Wednesday, August 15, 2007 2:38 PM
To: [email protected]
Subject: [DOTNET-WINFORMS] Off topic WCF question

Hi all.  I apologize for the off-topic post but I'm having trouble
getting a response on this issue elsewhere.

I created a custom ServiceHost object and did a bunch of initialization
there.  Now I need to access an object in it from the actual WCF service
class.  How can this be done?

Thanks!!! 



-----Original Message-----
From: Discussion forum for developers using Windows Forms to build apps
and controls [mailto:[email protected]] On Behalf Of
Bhatnagar, Amit
Sent: Tuesday, August 14, 2007 5:25 PM
To: [email protected]
Subject: [DOTNET-WINFORMS] Minimize application - Form and their
Owners...

 
Hi All.

I have 3 forms: 
- MainForm (my top level form) (MF)
- SecondaryForm (SF)
- TertiaryForm (TF)

MF is the Owner of SF.
SF is the Owner of TF. 

MF can display SF non-modally, and subsequently SF can display TF
non-modally.

If SF is closed, then TF has no meaning and should be closed, and it
does because TF's Owner is SF. I want to maintain this relationship.

My problem is when I minimize MF. I want both SF and TF to be minimized,
but only SF gets minimized and not TF. I assume this because SF is
directly owned by MF, but TF is directly owned by SF.

How can I make it so that the relationship between SF and TF is
maintained, but when I minimize my MF, all of the forms minimize?

I would have thought that since SF owns TF, that when SF is minimized
(because MF got minimized), it would also minimize those forms that it
owns - but it doesn't!

I hope this makes sence..

The information contained in this e-mail message is PRIVATE. It may
contain confidential information and may be legally privileged. It is
intended for the exclusive use of the addressee(s). If you are not the
intended recipient, you are hereby notified that any dissemination,
distribution or reproduction of this communication is strictly
prohibited. If the intended recipient(s) cannot be reached or if a
transmission problem has occurred, please notify the sender immediately
by return e-mail and destroy all copies of this message. 
Thank you.