|
-
Dec 4th, 2001, 04:31 PM
#1
Thread Starter
Hyperactive Member
List Box Hiding All help
yeah, this one dude needs help hinding all of his List boxes in one line...ok, he wants it showing only 1 list box while hiding all the other ones (which is 47 list boxes), and when the user clicks on a button, it well hide that one list box and show all the other list boxes.
is it possable?? and if it is, what is the code??
p|-|34|2 /\/\3 f0|2 | $p34k 1337 
My TSS quote of the day: "If your haveing a bad day, just press the restart button."
-
Dec 4th, 2001, 04:36 PM
#2
-= B u g S l a y e r =-
-
Dec 4th, 2001, 04:37 PM
#3
Frenzied Member
Make an array of listboxes then:
VB Code:
Private Sub Button_click()
Dim i as Integer
For i = 0 to 46 'all listboxes
If i = 4 'the one that you want to show then
List1(i).Visible = True
Else
List(i).Visible = False
End If
Next
Is this what you mean?
seoptimizer2001
VB 6.0, VC++, VI, ASP, JavaScript, HTML,
Perl, XML, SQL Server 2000
If God had intended us to drink beer, He would have given us stomachs.
Please use the [code] and [vbcode] tags in your posts!
If you don't know how to use them please go HERE!

-
Dec 4th, 2001, 04:39 PM
#4
-= B u g S l a y e r =-
assuming one is visible at start, and the rest not visible or visa versa u can use this
VB Code:
Private Sub Command1_Click()
Dim c As Control
For Each c In Me
If TypeOf c Is ListBox Then c.Visible = Not c.Visible
Next c
End Sub
-
Dec 5th, 2001, 03:05 AM
#5
-= B u g S l a y e r =-
?? u don't make much sence today ?? what are u on about?
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
|