Solved

Help With 2 Option boxes in VB 4

Posted on 1998-09-09
8
133 Views
Last Modified: 2010-04-30
Ok, I have two option box arrays...1 and 2...but In the program it will only let me click on one option box at a time...I need to make 2 seperate ones for each array how do I do that?
0
Comment
Question by:Klueny2
[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
  • 4
  • 4
8 Comments
 
LVL 2

Accepted Solution

by:
wj7ster earned 50 total points
ID: 1433995
Put each option box array on a seperate container control (i.e a picturebox or frame).  You will the be able to select one option for each array.
0
 

Author Comment

by:Klueny2
ID: 1433996
Dont mean to sound dumb, I'm kinda beginning on this, but how would you make it?...Sorry, I knda a little more detail than most.
0
 
LVL 2

Expert Comment

by:wj7ster
ID: 1433997
Say you have 2 arrays of option boxes called optArray1() and optArray2() and there are 4 elements (optionboxes) in each array.  You will then have a total of 8 options boxes, right?

They will be:
optArray1(0)
optArray1(1)
optArray1(2)
optArray1(3)

and

optArray2(0)
optArray2(1)
optArray2(2)
optArray2(3)

If you want to select one option from each array of optionboxes, you have to put each array of option boxes on its own, seperate container control.  (A container control is a control that can be the parent of other control, i.e, the Picturebox and Frame controls are examples of such)

If you place 2 pictureboxes (Picture1 and Picture2) on a form, and you put the first array of option boxes (optArray1()) on Picture1 and the second array of option boxes (optArray2()) on Picture2, then you will be able to select one of the options from optArray1() and one option from optArray2().

This is also valid, even if you don't create a control array (array of option boxes in this case).  You can group all option boxes from which the user can only select one option on its owner container control.

I hope this answers your question.


0
Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

 

Author Comment

by:Klueny2
ID: 1433998
Picture Box=Image?       
0
 

Author Comment

by:Klueny2
ID: 1433999
n/m that last question...BUt the problem now is...the first option of the array made is always on...no matter which button I hit.       
0
 
LVL 2

Expert Comment

by:wj7ster
ID: 1434000
Kleuny2,
Can you please rephrase that last question?

Thanks

0
 

Author Comment

by:Klueny2
ID: 1434001
Ok...When I did that...The first option of the array is always on (dot is inside of it). No matter what other option I click, the first button of the array has the dot in it.
0
 
LVL 2

Expert Comment

by:wj7ster
ID: 1434002
Try setting the 'Value' property of the option box that you want to be selected to 'True'.  If you don't want any optionbox to be selected, set all optionboxes' 'Value' property to 'False'.

Does this answer your question?
0

Featured Post

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Put text in a picture ASP.NET C# 2 73
MS Date Picker 64 bit 32 bit issue 12 72
Added a column screws up code 5 75
how to know if my Checkbox is True in VB6.0? 9 68
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

732 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