Solved

TABSTRIP

Posted on 1998-07-06
12
527 Views
Last Modified: 2008-02-01
how do you switch tabs in design view.. so you can draw in more that the first box
0
Comment
Question by:MAVERICK
  • 6
  • 2
  • 2
  • +2
12 Comments
 
LVL 1

Expert Comment

by:Jason_G
Comment Utility
Can you give me a little more information?

Sincerely,
Jason

Jason Gorman (jason_gorman@scholars.com)
Learning Advisor, scholars.com
Microsoft Authorized Technical Education Center
Novell Authorized Online Training Provider
http://scholars.com

0
 

Expert Comment

by:oak022097
Comment Utility
I am using the sstab control and it is very simple to put controls on each tab, simply draw the control on the first box, then click on the tab control and move to the box you want, and draw the control on, and so on.
If you need more help, just ask

Alon
0
 
LVL 2

Expert Comment

by:Veroland
Comment Utility
I am asuming you are using the standard VB Tabstrip control. If that is so you do not actually have tabs. What I do is use frames and make them visible and invisiblea as the user clicks on the tabstrip. ex.

Dim PrevTab As Integer

Private Sub TabStrip1_Click()
    Frame1(PrevTab).Visible = False
    Select Case TabStrip1.SelectedItem.Index
        Case 1: Frame1(0).Visible = True
                PrevTab = 0
        Case 2: Frame1(1).Visible = True
                PrevTab = 1
    End Select
End Sub

In design time create frames which you setup above one another and just move them around in design time to see them.

If this is what you are looking for I will post it as an anwser.
0
 
LVL 1

Author Comment

by:MAVERICK
Comment Utility
I'm interested in the Alternate SSTAB control......oak Thanks


Veroland ..... I'll try and get the method u suggested going.....
If I get the ur method going ,,,, I'll submit anothe Q so I can accept the two valid answers...


0
 
LVL 2

Expert Comment

by:Veroland
Comment Utility
Just remember, 3rd party tools means usually more ocx problems, and I've had problems with the sstab32.ocx. But on the other hand I usually use the SSTab myself.
0
 
LVL 1

Author Comment

by:MAVERICK
Comment Utility
Yeah, But where do you get it.....
A URL would be better but if not email me tomcat203@geocities.com

0
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

 
LVL 1

Author Comment

by:MAVERICK
Comment Utility
To Veroland....
I'm  still not sure how to select the various Tabs in design view........... I can't seem to select the container for the other TABS

0
 
LVL 1

Author Comment

by:MAVERICK
Comment Utility
Where do you get the SSTAB control from or another equivelent........

I rejected the answer to reopen it...... If you can tell me where to get it from .... resubmit!!!

0
 
LVL 1

Expert Comment

by:aprasrl
Comment Utility
Enclose all the controls for the first page inside a picturebox or borderless frame, next insert another frame and put the controls for the second page inside it, you can switch between the frames (pages) in design mode simply using the "bring to front"/"send to back" shortcut keys. have fun !
0
 
LVL 1

Author Comment

by:MAVERICK
Comment Utility
.... If you put one frame inside another.... It didn't work!!..... sorry.... eventually I solved the problem by using Verolands Code... sorry for rejecting it.. but I spent ages try with one frame inside the other!


Veroland: Please Resubmit as answer

 
0
 
LVL 1

Accepted Solution

by:
aprasrl earned 150 total points
Comment Utility
No Maverick !!!!

Don't use a frame within the other, ALL the frames must be alone, excuse me but i didn't explain it well:

Enclose all the controls for the first page inside a picturebox or borderless frame, next set focus to FORM and insert another frame or picturebox for the 2nd page and enclose in it all the controls for the 2nd page, continue with the other pages, to switch between a frame and the other while in design mode use
the shortcut keys Ctrl+J/Ctrl+K, when you're satisfied with all
the pages simply insert this code into your form

assuming that the frames are named fraPAGE(x) (x=0...n) and that
the TabStrip control is named tsTABS:

Private Sub Form_Load()
    Dim iFrames As Integer

    ' position and size all frames within tabstrip
    With tsTABS
        For iFrames = 0 To fraPAGE.Count
            fraPAGE(iFrames).Move .ClientLeft, .ClientTop, .ClientWidth, .ClientHeight
        Next iFrames
    End With
End Sub

Private Sub tsTABS_Click()
    Static nPrevPage As Integer
   
    ' change page
    With tsTABS
        fraPAGE(nPrevPage).Visible = False
        nPrevPage = .SelectedItem.Index - 1
        fraPAGE(nPrevPage).Visible = True
    End With
End Sub





0
 
LVL 1

Author Comment

by:MAVERICK
Comment Utility
Veroland... did u catch the other question ??????

0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now