How do I write to the MDI Parent statusbar from a MDI child form?

How do I write to the MDI Parent statusbar from a MDI child form?

Post by Tom » Sat, 22 May 2004 01:07:12


Anyone know how to do this?
 
 
 

How do I write to the MDI Parent statusbar from a MDI child form?

Post by Bob Powell » Sat, 22 May 2004 05:07:53

Give the child form a reference to the parent's status bar directly OR make
the status bar public and cast Parent to <your form> OR give the child form
an event that the parent can subscribe to OR examine the members of the
parent object using reflection, find the statusbar and update it's members.

Suffice to say, there's lots of ways.

--
Bob Powell [MVP]
Visual C#, System.Drawing

Image transition effects, automatic persistent configuration and
design time mouse operations all in April's issue of Well Formed
http://www.yqcomputer.com/

Answer those GDI+ questions with the GDI+ FAQ
http://www.yqcomputer.com/

The GDI+ FAQ RSS feed: http://www.yqcomputer.com/
Windows Forms Tips and Tricks RSS: http://www.yqcomputer.com/
Bob's Blog: http://www.yqcomputer.com/

 
 
 

How do I write to the MDI Parent statusbar from a MDI child form?

Post by hirf-spam- » Sat, 22 May 2004 06:04:54

* "Tom" < XXXX@XXXXX.COM > scripsit:

\\\
DirectCast(Me.MdiParent, MainForm).StatusBar1.Text = "Foo."
///

--
Herfried K. Wagner [MVP]
<URL: http://www.yqcomputer.com/ ;