>Am trying to add an OptionGroup to my class library and want to incorporate my own properties & methods with the associated OptionButtons.
>
>However the OptionButton is not one of those available for subclassing in the Class Browser.
>
>The ButtonCount of the OptionGroup will vary each time I add my new class to a form. Will I have to create the OptionGroup class with the maximum number of Buttons forseen and then change the ButtonCount property to a lower number ? Or is there a better way ?
>
>- Werner
I subclassed the optionbuttongroup with 10 buttons. I added an nButtonCount property that contains the number of buttons I want. In the Init, I do a RemoveObject for anybutton I don't need. It is a bit ugly at design time because all the buttons are visible, but it works great. BTW, I did the same thing with pagesframes.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer