Home All Groups Group Topic Archive Search About

Add objects already on form to Groupbox

Author
25 Feb 2009 6:48 PM
tshad
In VB6,  I already have a groupbox on my form and some checkboxes that are
on the form but not in the groupbox.

How can I add them to the Groupbox?

I move them on top of the groupbox and they don't move with the groupbox.

Thanks,

Tom

Author
25 Feb 2009 7:10 PM
Mike Williams
"tshad" <t***@pdsa.com> wrote in message
news:OEUB1m3lJHA.3760@TK2MSFTNGP03.phx.gbl...

> In VB6,  I already have a groupbox on my form and some
> checkboxes that are on the form but not in the groupbox.
> How can I add them to the Groupbox? I move them on top
> of the groupbox and they don't move with the groupbox.

I don't know what you mean by "groupbox"? Presumably you mean a Frame
Control or a Picture Box? If so then just click one of the CheckBoxes so
that it becomes selected and use the Edit / Cut menu (or Ctrl X or press the
scissor icon). Then click the Frame Control (or PictureBox) to select it and
then use the Edit / Paste menu (or Ctrl V or press the paste icon). Repeat
for the other check boxes.

Alternatively you can move them all together by clicking one CheckBox (to
select it) and then holding down the Ctrl key whilst clicking each of the
other Check Boxes in turn. This will select them all. Then use the Edit /
Cut menu and then click the Frame Control (or PictureBox) to select it and
then use Edit / Paste. Using this method some of the CheckBoxes may be out
of view within the Frame if the check boxes are widely separated, so it is
best to move them fairly close together on the Form before doing the above.
If you do that then you will also be able to select them all more easily by
simply dragging a bounding box around them using the mouse.

Mike
Author
25 Feb 2009 9:51 PM
tshad
That work great.

Thanks,

Tom

Show quoteHide quote
"Mike Williams" <M***@WhiskyAndCoke.com> wrote in message
news:Ome3Dy3lJHA.5532@TK2MSFTNGP06.phx.gbl...
> "tshad" <t***@pdsa.com> wrote in message
> news:OEUB1m3lJHA.3760@TK2MSFTNGP03.phx.gbl...
>
>> In VB6,  I already have a groupbox on my form and some
>> checkboxes that are on the form but not in the groupbox.
>> How can I add them to the Groupbox? I move them on top
>> of the groupbox and they don't move with the groupbox.
>
> I don't know what you mean by "groupbox"? Presumably you mean a Frame
> Control or a Picture Box? If so then just click one of the CheckBoxes so
> that it becomes selected and use the Edit / Cut menu (or Ctrl X or press
> the scissor icon). Then click the Frame Control (or PictureBox) to select
> it and then use the Edit / Paste menu (or Ctrl V or press the paste icon).
> Repeat for the other check boxes.
>
> Alternatively you can move them all together by clicking one CheckBox (to
> select it) and then holding down the Ctrl key whilst clicking each of the
> other Check Boxes in turn. This will select them all. Then use the Edit /
> Cut menu and then click the Frame Control (or PictureBox) to select it and
> then use Edit / Paste. Using this method some of the CheckBoxes may be out
> of view within the Frame if the check boxes are widely separated, so it is
> best to move them fairly close together on the Form before doing the
> above. If you do that then you will also be able to select them all more
> easily by simply dragging a bounding box around them using the mouse.
>
> Mike
>
>
Author
25 Feb 2009 7:13 PM
tshad
Also, I am trying to put a label onto the groupbox, but no matter what I do,
the label is always behind the groupbox.  I send the groupbox to the back
and bring the label to the front but the label is behind the groupbox.

Thanks,

Tom

Show quoteHide quote
"tshad" <t***@pdsa.com> wrote in message
news:OEUB1m3lJHA.3760@TK2MSFTNGP03.phx.gbl...
> In VB6,  I already have a groupbox on my form and some checkboxes that are
> on the form but not in the groupbox.
>
> How can I add them to the Groupbox?
>
> I move them on top of the groupbox and they don't move with the groupbox.
>
> Thanks,
>
> Tom
>
Author
25 Feb 2009 7:24 PM
Mike Williams
"tshad" <t***@pdsa.com> wrote in message
news:u8e9f03lJHA.1216@TK2MSFTNGP02.phx.gbl...

> Also, I am trying to put a label onto the groupbox, but no
> matter what I do, the label is always behind the groupbox.

See my previous response regarding the CheckBoxes. Do the same thing with
the Label.

Mike
Author
25 Feb 2009 10:30 PM
tshad
That also worked well.

Thanks,

Tom

Show quoteHide quote
"Mike Williams" <M***@WhiskyAndCoke.com> wrote in message
news:ubdg853lJHA.3792@TK2MSFTNGP04.phx.gbl...
> "tshad" <t***@pdsa.com> wrote in message
> news:u8e9f03lJHA.1216@TK2MSFTNGP02.phx.gbl...
>
>> Also, I am trying to put a label onto the groupbox, but no
>> matter what I do, the label is always behind the groupbox.
>
> See my previous response regarding the CheckBoxes. Do the same thing with
> the Label.
>
> Mike
>
>
>