Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Option

Status
Not open for further replies.

EscapeUK

Programmer
Jul 7, 2000
438
GB
I have three option with three test boxes next to them.

What I would like is that when one of the options is selected the text bax next to it is enabled and the text boxes next to the other options are diabled.
 
Make an array of the options and corresponding textboxes. In the option's click event place the following code:

Private Sub Option1_Click(Index as Integer)
dim i as integer
for i = 0 to 2 'number of textboxes and options
Text1(i).Enabled = Option1(i).Value
next
End Sub

herman :-Q
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top