access a control in another form

  • Thread starter Thread starter authorking
  • Start date Start date
A

authorking

How to access a control in another form and how to make a form become a MDI
container.
 
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.
 
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 said:
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 said:
How to access a control in another form and how to make a form become a
MDI container.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top