Results 1 to 4 of 4
  1. #1
    Bronze Lounger
    Join Date
    Jun 2001
    Location
    New York, New York, Lebanon
    Posts
    1,449
    Thanks
    1
    Thanked 1 Time in 1 Post

    Control Arrays (VB 6)

    <img src=/S/hello.gif border=0 alt=hello width=25 height=29> Loungers

    OK so when you work with VB and you copy and paste an control object on a form, VB will ask you if you want to make it into a Control Array.

    I seem to have managed to create one of these arrays and I don't want it.

    Is there a way to un-array these controls?

    BTW these controls are option buttons but each two are in a frame of their own. If that has any baring.

    TIA

    Wassim <img src=/S/compute.gif border=0 alt=compute width=40 height=20> in the <img src=/S/bagged.gif border=0 alt=bagged width=22 height=22>
    <img src=/S/compute.gif border=0 alt=compute width=40 height=20> in the <img src=/S/bagged.gif border=0 alt=bagged width=22 height=22>

  2. #2
    Platinum Lounger
    Join Date
    Dec 2000
    Location
    Queanbeyan, New South Wales, Australia
    Posts
    3,730
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Control Arrays (VB 6)

    To change a control to become a non-array control:

    .Rename one control
    .Remove its "Index" property
    .Remove the Index property of the other control
    Subway Belconnen- home of the Signboard to make you smile. Get (almost) daily updates- follow SubwayBelconnen on Twitter.

  3. #3
    Bronze Lounger
    Join Date
    Jun 2001
    Location
    New York, New York, Lebanon
    Posts
    1,449
    Thanks
    1
    Thanked 1 Time in 1 Post

    Re: Control Arrays (VB 6)

    Thanks Geoff

    It turned to be that the Option Buttons where all on the form instead of on the Frame. I don't know what did that, I drew the frame and then the option buttons?! <img src=/S/drop.gif border=0 alt=drop width=23 height=23>

    But it is nice to know that I can change the control array also.

    Wassim <img src=/S/compute.gif border=0 alt=compute width=40 height=20> in the <img src=/S/bagged.gif border=0 alt=bagged width=22 height=22>
    <img src=/S/compute.gif border=0 alt=compute width=40 height=20> in the <img src=/S/bagged.gif border=0 alt=bagged width=22 height=22>

  4. #4
    Silver Lounger
    Join Date
    Mar 2001
    Location
    Springfield, Ohio, USA
    Posts
    2,136
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Control Arrays (VB 6)

    Probably too late to help now, but you can select all of the controls that are on the form, but should be in the frame (click the first to select it, then shift-click the rest). After selecting the controls, cut them, select the frame, and paste them. Now, they are in the frame. While they are all selected in the frame, move them to where you want them.

    In MS Office Userforms, you have an additional GroupName property which allows you to create multiple groups of option buttons in a single container, but this property is not available in VB, so you have to use frames. HTH --Sam
    <font face="Comic Sans MS">Sam Barrett, CACI </font face=comic>
    <small>And the things that you have heard... commit these to faithful men who will be able to teach others also. 2 Timothy 2:2</small>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •