Re: access a control in another form
From: Dmitriy Lapshin [C# / .NET MVP] (x-code_at_no-spam-please.hotpop.com)
Date: 01/31/05
- Next message: Bredahl jensen: "Getting data from an XML serialised class ."
- Previous message: James Curran: "Re: Question for the OO Gurus"
- In reply to: authorking: "access a control in another form"
- Next in thread: authorking: "Re: access a control in another form"
- Reply: authorking: "Re: access a control in another form"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 31 Jan 2005 18:12:49 +0200
Hi,
>How to access a control in another form
There's a property for each control determining its visibility outside the
form class. It's 'private' by default, you can change it to 'internal' or
'public' for the control field to become visible outside the form class.
Or, declare a public property on the form class returning the reference to
the control in question.
> how to make a form become a MDI container.
There's a dedicated property on the form serving just this purpose -
IsMdiContainer.
-- Sincerely, Dmitriy Lapshin [C# / .NET MVP] Bring the power of unit testing to the VS .NET IDE today! http://www.x-unity.net/teststudio.aspx "authorking" <authorking2002@hotmail.com> wrote in message news:eYBQiJ4BFHA.3336@TK2MSFTNGP11.phx.gbl... > How to access a control in another form and how to make a form become a > MDI container. >
- Next message: Bredahl jensen: "Getting data from an XML serialised class ."
- Previous message: James Curran: "Re: Question for the OO Gurus"
- In reply to: authorking: "access a control in another form"
- Next in thread: authorking: "Re: access a control in another form"
- Reply: authorking: "Re: access a control in another form"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|