Getting a variable from one form to another in C#

B

Belee

1. I have developed an MDI app with a status bar in C#. I
want the current MDIChild active form text or caption to
be written in one of the MDI Form's status bar panels.

2. What is the best way of passing information from one
form to another in C#.
 
I

Ignacio Machin \( .NET/ C# MVP \)

Hi,

Pass a reference to the status's container form either in the constructor or
by a property.
If the status bar is in the main form you could make it static and make it
accesible using a property.

Hope this help,
 

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

Top