|
-
February 20th, 2000, 07:35 PM
#1
trouble with tabstrips....
i have a tabstrip with 2 tabs on it. when the form loads, the first 1 is defautled selected. the first one shows up fine, but when i click on the second one,nothing shows up, so i click on the first one again, it shows up again. how can i solve this problem? heres my code, id GREATLY APPRECIATE it if anyone could help me on this asap!!! thanks!!
i have 2 picture boxes that are in the tabstrip. the first one to be show is visible = true, the second one is visible = false
private Sub TabStrip_Click()
Dim i as Integer
'show and enable the selected tab's controls
'and hide and disable all others
for i = 0 to TabStrip.Tabs.Count - 1
If i = TabStrip.SelectedItem.Index - 1 then
picBox(i).Visible = false
picBox(i).Visible = true
else
picBox(i).Visible = true
picBox(i).Visible = false
End If
next
End Sub
Thanks!!!
_______
Aaron
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
|