Home All Groups Group Topic Archive Search About

What comes with control parenthood

Author
25 Jan 2006 7:26 PM
**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

Author
25 Jan 2006 10:49 PM
Mr Newbie
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.


--
Best Regards

The Inimitable Mr Newbie  º¿º
Show quoteHide quote
" **Developer**" <REMOVEdevelo***@a-znet.com> wrote in message
news:%23fbriVeIGHA.3144@TK2MSFTNGP10.phx.gbl...
> 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
>
>
>
>
>
>
Author
25 Jan 2006 11:19 PM
**Developer**
I was wonder what the effects are.


Show quoteHide quote
"Mr Newbie" <m*@mine.com> wrote in message
news:Ocy4%23GgIGHA.1124@TK2MSFTNGP10.phx.gbl...
> 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.
>
>
> --
> Best Regards
>
> The Inimitable Mr Newbie  º¿º
> " **Developer**" <REMOVEdevelo***@a-znet.com> wrote in message
> news:%23fbriVeIGHA.3144@TK2MSFTNGP10.phx.gbl...
>> 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
>>
>>
>>
>>
>>
>>
>
>