Option Button Help .....

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello all,
Can anyone here help me to sort out the following problem in VB6.0?

I have a form...

On this form i have a textbox , ONE option button and one Ok button...

When the user enter any numeric value I wanted to display that many option
button on the form...

For example if the user enters 10 ,I wanted 10 option buttons to be
displayed on the form with SINGLE option button and when the user selects any
one option button I wanted to display a message box stating that user has
selected the option button 6 or 5 or whatever..

Thanks in advance...

Regards
Jackfadd
 
Not really an Outlook question, but:

Create a control array of the control type you want. Assign it a 0 index to
create the array. In code when you determine how many controls you need use
Load MyControl(index) to load another instance of the control. Repeat as
needed. Increment index after each control you add.

You will need to set TabIndex and Visible properties for the controls you
added, Visible defaults to False when you add controls dynamically at run
time.

And don't forget to resize your form and set up the controls positioning
after you add all the controls you need.
 
Back
Top