Solved

Radio buttons on VB6 form

Posted on 2006-11-26
3
2,582 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

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

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

696 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