|
-
Jul 3rd, 2000, 05:23 PM
#1
Thread Starter
Hyperactive Member
i have 26 comboboxes ... the first combobox has the #'s 2 to 25 ... what that is supposed to do is make the other 25 comboboxes either be visible or not (they r in an array) lets say u click on 12 in that first combobox ... then the first 12 comboboxes should be visible n the rest not visible ... this part of my long tedious code ... the first combobox is named "cmbnumbers" n the rest are called cmbgrade() ...
Select Case cmbnumbers.ListIndex
Case Is = 0
For cmbsvisible = 0 To 24
cmbgrade(cmbsvisible).Visible = True
Next cmbsvisible
Case Is = 1
For cmbsvisible = 0 To 23
cmbgrade(cmbsvisible).Visible = True
Next cmbsvisible
cmbgrade(24).Visible = False
Case Is = 2
For cmbsvisible = 0 To 22
cmbgrade(cmbsvisible).Visible = True
Next cmbsvisible
cmbgrade(24).Visible = False
cmbgrade(23).Visible = False
Case Is = 3
For cmbsvisible = 0 To 21
cmbgrade(cmbsvisible).Visible = True
Next cmbsvisible
cmbgrade(24).Visible = False
cmbgrade(23).Visible = False
cmbgrade(22).Visible = False
Case Is = 4
For cmbsvisible = 0 To 20
cmbgrade(cmbsvisible).Visible = True
Next cmbsvisible
cmbgrade(24).Visible = False
cmbgrade(23).Visible = False
cmbgrade(22).Visible = False
cmbgrade(21).Visible = False
Case Is = 5
For cmbsvisible = 0 To 19
cmbgrade(cmbsvisible).Visible = True
Next cmbsvisible
cmbgrade(24).Visible = False
cmbgrade(23).Visible = False
cmbgrade(22).Visible = False
cmbgrade(21).Visible = False
cmbgrade(20).Visible = False
u can see how it starts to get bigger ... by the way i'm working backwards on this thing so it might be a little confusing (i know it was for me)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|