Group Option button prob

jerome_gail26
08-11-2009, 07:32 PM
Hi,

I use FOUR (4) Optionbutton from Microsoft Form2.0 Object Library (Microsoft Form2.0 Object Library controls are different from the default control),
I would like to group it by 2.

this will be the first group

Option1's caption is YES
Option2's caption is NO


this will be the Second group

Option3's caption is OK
Option4's caption is CANCEL


As expected, When option1's value is true then option2 must be false, if option3 is true then option4 must be false.
But if option1 or option2 is true, then either option3 or option4 can be true.


Now, what happen is when option 3 is true then i choose option 2, option3's value turn to false.

Hope i make my self clear.

I already use 2 frames to group them but same thing happens.

Thanks in advance
Jerome

Gruff
08-11-2009, 09:40 PM
Two things,

1) Don't know if your doing this in VB6 or not. but be aware there are legal issues with using Microsoft Form2.0 Object Library controls outside of VBA.

2) The Form2.0 radio buttons have a property to tie them together.

jerome_gail26
08-11-2009, 11:05 PM
I am using VB6.0.
What are legal issues with using Microsoft Form2.0 Object Library controls outside of VBA?
What is the property to tie radio buttons? Can i use it in vb6.0?


but be aware there are legal issues with using Microsoft Form2.0 Object Library controls outside of VBA.


Meaning FORM2.0 Objects are actually for VBA and not for VB6.0

Thanks,
Jerome

jerome_gail26
08-12-2009, 12:59 AM
Thanks Gruff,

Have found GroupName on option button's property.

Jerome

mkaras
08-12-2009, 05:30 AM
Jerome:

Are you using the native VB6 frame control to do the grouping or the Forms2.0 frame control?

mkaras

jerome_gail26
08-12-2009, 06:41 PM
i use the native frame control.
but
On design time,I try to place Form2.0 Option button on Form2.0 Frame control what happen is Frame is infront of option button.

Thanks,
Jerome

Gruff
08-12-2009, 10:32 PM
Look it up but I believe you are only licensed to use VBA controls inside the product that contains VBA. You do not have the rights to redistribute Form 2.0 controls along with your compiled VB6 application.

mkaras
08-12-2009, 11:04 PM
I tried playing with a simple applet that include frames and radio buttons of both the native VB6 type and the Forms2.0 type. I found that even at design time it was not apparently possible to coerce the Forms2.0 type frame to be a container for the radio buttons. Looks like the Forms2.0 radio buttons are only linked by the property that Gruff pointed out.

I did not get so far with the experimentation with the applet as to try to write any code to evaluate run time behavior.....time being what it is I wanted to devote some effort to my weekly project to learn the .NET system.

mkaras

Gruff
08-13-2009, 11:54 PM
With all due respect I guess I do not get the love affair with forms 2.0 controls.
VB6 controls are equal if not more powerful. Since you are in the VB6 environment why not take advantage of it?

Other than that I leave you in the more than capable hands of titan of code warriors MKaras.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum