By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,244 Members | 2,104 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,244 IT Pros & Developers. It's quick & easy.

access a control in another form

P: n/a
How to access a control in another form and how to make a form become a MDI
container.
Nov 16 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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" <au************@hotmail.com> wrote in message
news:eY**************@TK2MSFTNGP11.phx.gbl... How to access a control in another form and how to make a form become a
MDI container.


Nov 16 '05 #2

P: n/a
Could you please give me some sample code such as accessing a statusbar
control of a MDI parrent form in a MDI child form.
"Dmitriy Lapshin [C# / .NET MVP]" <x-****@no-spam-please.hotpop.com>
??????:%2******************@TK2MSFTNGP14.phx.gbl.. .
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" <au************@hotmail.com> wrote in message
news:eY**************@TK2MSFTNGP11.phx.gbl...
How to access a control in another form and how to make a form become a
MDI container.

Nov 16 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.