Passing Information/address form properties - VB.NET

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a basic question about how do you change the information on a Form
from another Form, not a dialog.

Example: I have a MDIform which is the startup form for the project. I
call a child form to put in setup information which is written to the
Registry. As a result I need to update the Text (Title) of the MDIForm and a
StatusBar Panel(0) which is also on the MDIFORM. In VB6 this was easy.

I has tried using classes but can not seem to get it to work. I can pass to
a new instance but not to the current instance.

Help

Leo
 
You set the mdiparent of the child form to the mdi. So, to change the title
you do this:

me.mdiparent.text = "New Title"

You can access the status bar the same way.
 
Thanks for the response. The reference to me.mdiparent.text works just fine,
but the StatusBar Control does not readily show itself. It is part of the
controls collection and I can reference it by me.mdiparent.controls(1), but I
can not set any of the panels properties (StatusBar1.Panels(0).Text
 
Create a property in the MDI that exposes the statusbar. Then you can have
your way with it.
 
Back
Top