-->frame array located on the second tab strip, right?
There is only one tabstrip box on the form. Help me out here, should there be 2?
jdvh
Main Topics
Browse All TopicsNew VB programmer here, please bear with me...
I'm trying to use the tabstrip control to display a control array of frames, I just cant seem to get it to work. I've tried different code, the simplest posted here;
Private Sub TabStrip1_Click()
If TabStrip1.SelectedItem.Ind
Frame1(1).Visible = False
Frame1(0).Visible = True
ElseIf TabStrip1.SelectedItem.Ind
Frame1(0).Visible = False
Frame1(1).Visible = True
End If
End Sub
In this case, frame1(0) is displayed when i clock on tabstrip1(1), but when I click on tabstrip1(2) the tabstrip box is just emptied out.
(I can click tabstrip1(1) again to get frame1(0) back.)
What am I doing wrong?
jdvh
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
If you are using the standard tabstrip control, Understand this. This is not a container control. It will never hold anything. Use the SSTab control if you want that but even that is not a real container, it just hides the controls for you off to the left of the screen. The code you displayed worked fine for me, but you need to position your controls at runtime. Dont toss them on top of each other so they bleed through the tab.
BrianBender:
As I mentioned, I am using frames inside the tabstrip box as containers. I think you may have hit on something though... I dont think my form is designed correctly....
I removed the frame1(X) control array, added a frame1 and a frame2 control (not an array), and used this code;
Private Sub TabStrip1_Click()
If TabStrip1.SelectedItem.Ind
Frame2.Visible = False
Frame1.Visible = True
ElseIf TabStrip1.SelectedItem.Ind
Frame1.Visible = False
Frame2.Visible = True
End If
End Sub
and it seems to be working. Can I not use an array of frames in the tabstrip control?
NiniBini:
The MSDN document said not to use Zorder because hot keys from hidden frames would still be active, it said to use the hide/show method instead.
jdvh
Ok, it works now... it seems like, if the coordinates of the 2nd frame reside within the 1st frame when you copy and paste it, then 2nd frame becomes part of 1st frame.
I guess it was a form design problem, thanks for all of your help!
I will give points to brianbender, since he was first to mention a form design problem. Anyone object to that?
jdvh
Greetings.
This question is still open today, perhaps it was overlooked or just lost in the volumes. Please return to this question to update it with comments if more information is needed to get your solution. If you've been helped by the participating expert(s), you may just convert their comment to the accepted answer and then grade and close. If an answer has ever been proposed you may not have this option to accept the comment as answer, if that is the case, ask the specific expert you wish to pay to post an answer. This benefits others who then search our PAQ for just this solution. A win/win scenario.
If you wish to pay multiple participants, you can do so by creating a zero point question in the Community Support topic area, include this link and tell them which experts you'd like to pay what amounts. If you'd like to delete this question, use the same process as above, but explain why you think it should be deleted. Here is the Community Support link: http://www.experts-exchang
You can always click on your profile to see all your open questions, in the event you also have other open items to be resolved. If your number of Questions Asked is not equal to the number of Answers Graded, choose to VIEW question history, and you'll quickly be able to navigate to your open items to close them as well.
I've had excellent help from experts-exchange through the years and find the real key to getting what I need is to remain active in all my questions, responding with results to suggestions until my solution is found, and recommend that highly.
Thank you very much for your responsiveness, it is very much appreciated.
":0) Asta
P.S. Some of the older questions from last year are not in the proper comment date order, and Engineering has been advised.
Business Accounts
Answer for Membership
by: bobbit31Posted on 2000-10-20 at 20:55:23ID: 4835860
you have the frame array located on the second tab strip right?