StatusStrip Question


Author
Message
franka
franka
StrataFrame Beginner (22 reputation)StrataFrame Beginner (22 reputation)StrataFrame Beginner (22 reputation)StrataFrame Beginner (22 reputation)StrataFrame Beginner (22 reputation)StrataFrame Beginner (22 reputation)StrataFrame Beginner (22 reputation)StrataFrame Beginner (22 reputation)StrataFrame Beginner (22 reputation)
Group: Forum Members
Posts: 22, Visits: 35
I have an MDI form that has a statusstrip with multiple panels one of which is used for status/user feedback info.  When an action (add/update/delete etc) is performed in a child form I want to update the status panel on the MDI parent with a message and use a timer to clear it rather than popping up a message/dialog box that the user needs to chase away.  I can't figure out how to access individual panels from the child form.  I can use the MDIParent property to get to the statusstrip in the Controls collection but I can't seem to get to the individual panels.  Here's some code I tried in the child form:

Me.MDIParent.Controls("StatusStrip").Controls("stStatus").Text = "blah"

The message I get is "Referenced object has a value of 'Nothing'". 

Looking at the StatusStrip control it appears all the panels are stored in an Items collection but there is no Items collection accessing the controls through the MDIParent property. 

Does anyone know how to do what I'm trying to do?

Thanks and Happy Holidays!!!

StrataFrame Team
S
StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
You should be able to cast the MdiParent property value as the actual type of parent and access all of the objects on it that way.  Like this:

CType(Me.MdiParent, ParentFormType).ToolStripStatusLabel1.Text = "Howdy..."

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search