Getting a variable from one form to another in C#

  • Thread starter Thread starter Belee
  • Start date Start date
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#.
 
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,
 
Back
Top