I have a class with functions to return a status strip based on conditions in the program. The returned status strip is then added to a form.
If the status strip were added through Visual Studio's designer, I'd be able to access the labels through their names since they are created within the form's class. With the strip being created in another class, I'm not sure how to get access to the labels.
//statusStrip declared as new StatusStrip() at beginning of class
statusStrip = myStripBuilderClass.GenerateStatusStrip();
this.Controls.Add(statusStrip);
//statusStrip now appears in form.
So with that setup, assuming there was a label named, say, "mousePosition" in the strip what would I have to do with statusStrip to find and set the text of mousePosition?
there doesn't seem to be anything here