Solved

Radio buttons on VB6 form

Posted on 2006-11-26
3
2,575 Views
Last Modified: 2013-12-26
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
Comment
Question by:k3n51mm
3 Comments
 
LVL 67

Accepted Solution

by:
sirbounty earned 250 total points
ID: 18017289
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
 
LVL 14

Expert Comment

by:Shiju Sasidharan
ID: 18017375
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
 
LVL 1

Author Comment

by:k3n51mm
ID: 18023615
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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now