Defining Controls In Code vs In Form

jsurpless

Well-known member
Joined
Jul 29, 2008
Messages
144
Programming Experience
Beginner
Hi all

I'm trying to make some sense of some existing code but thus far, not so much... hoping maybe someone here can explain what exactly the end result of this is...

VB.NET:
Private mystatusLabel As New ToolStripStatusLabel

mystatusLabel.Text = System.DateTime.Now.ToString() + " :: Initialization..."

What exactly does this do? What is the effect of defining a status strip like that? It's not in the GUI so?

Thanks!
 
I think I figured out what exactly the original coder was doing... this is from a class module and when he's invoking a new instance of the class from a given form, he's passing certain controls to it...

Now since the original code is in C#, i need to figure out the VB.net equivalent...
 
Back
Top