HELP PLZ: WindowsForm code question.

  • Thread starter Thread starter John Clark
  • Start date Start date
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.
 
Required by the Windows Form Designer


--

OHM ( Terry Burns )
. . . One-Handed-Man . . .

Time flies when you don't know what you're doing
 
Back
Top