J
John Clark
Hello,
I am learning VB.Net , and what a lovely tool that I might add.
Here is the scenario,
I have created a new windows form project.
I was nevigating the code that was generated by the VB.NET and came across
following code which puzzled me.
Private components As System.ComponentModel.IContainer
the private member, components, does not 'seem' to be used anywhere in the
form
code EXCEPT in dispose routine.
With that in mind, I added some text boxes and command buttons. As I
expected,
VB.NET created control code and addde to the form. But what I did not
expect was
that components member variable was not being used (i expected it to be used
along with controls that
I add on the form somehow; container keeps reference to controls that I add
on the form?).
I know I am misunderstanding something here ...
Can someone please share some knowledge on this?
Is components member variable being used somewhere implicitly somehow?
Why is components member variable being referenced in Dispose routine? (it
was never used anywhere Explicitly?)
Thank you so much.
I am learning VB.Net , and what a lovely tool that I might add.
Here is the scenario,
I have created a new windows form project.
I was nevigating the code that was generated by the VB.NET and came across
following code which puzzled me.
Private components As System.ComponentModel.IContainer
the private member, components, does not 'seem' to be used anywhere in the
form
code EXCEPT in dispose routine.
With that in mind, I added some text boxes and command buttons. As I
expected,
VB.NET created control code and addde to the form. But what I did not
expect was
that components member variable was not being used (i expected it to be used
along with controls that
I add on the form somehow; container keeps reference to controls that I add
on the form?).
I know I am misunderstanding something here ...
Can someone please share some knowledge on this?
Is components member variable being used somewhere implicitly somehow?
Why is components member variable being referenced in Dispose routine? (it
was never used anywhere Explicitly?)
Thank you so much.