• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2606
  • Last Modified:

Radio buttons on VB6 form

I have 10 sets of radio buttons that must be on a VB form. They're just Yes or No buttons. How do I create separate control arrays for each Yes/No pair of buttons? I've run across some articles mentioning Frame controls with no border and I get the idea, but I need it explained plainly and clearly in detail.

thx
0
k3n51mm
Asked:
k3n51mm
1 Solution
 
sirbountyCommented:
Drop a frame on your form - remove the caption and change the border style to None.
Add a radio button to the form.  Cut/paste it while the frame is selected to add it to the frame.
Adjust caption, etc as needed.
Copy/paste it with the frame selected, answering yes to creating a control array.
Now select the frame and copy/paste it 9 times, again answering yes to creating the control array...
0
 
Shiju SasidharanCommented:
Suppose you want 10 Option buttons with yes/no pair
That is 5 Pairs

First create five frames on ur form say,

Frame1, Frame2, Frame3, Frame4 and Frame5

Now inside Frame1  insert two Radio buttons Option1 and Option2
Place two radio buttons Option3 and Option4 inside Frame2  and so on.
For better looking you can change border style of the frames to 0 -None
0
 
k3n51mmAuthor Commented:
sirbounty: thanks for the response. I followed your instructions except for adding the frame copies all at once. I did add frames, and radio buttons to each one, but I did it manually, so to speak, adding each control to each frame explicitly. When I did it using cut and paste, I ended up with 10 members of the Option1 array. It's easier to refer to Option2(0) and (1) than Option1(5) and (6), trying to remember which is which.

thx
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now