What comes with control parenthood

  • Thread starter Thread starter **Developer**
  • Start date Start date
D

**Developer**

Consider two Pictureboxes and the following:
PictureBox2.Parent = PictureBox1

What does that do. The only thing I could find in the help relates to
Control.ControlCollection but I think there are other considerations.

I'm guessing it does not relate the size nor location of the boxes. Right?

I believe it does relate to transparency. Right?

What else comes with parenthood??





Thanks for any insight
 
Apart from parenthood being a pain in the a**.

Setting the Parent property value to a null reference (Nothing in Visual
Basic) removes the control from the Control.ControlCollection of its current
parent control.

Normally, a child becomes a child because the parent has added it to its
controls collection.
 
I was wonder what the effects are.


Mr Newbie said:
Apart from parenthood being a pain in the a**.

Setting the Parent property value to a null reference (Nothing in Visual
Basic) removes the control from the Control.ControlCollection of its
current parent control.

Normally, a child becomes a child because the parent has added it to its
controls collection.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top