[dba-VB] Tabstrip Control - VB6

Christian, Lorraine LChristian at MassMutual.com
Tue Jan 20 12:29:09 CST 2004


Hi there

How about:

Private Sub Form_Load()

' Sets focus to the first tab on the Main tab control and
' sets focus to the second tab on the Initial tab control

        SSTabMain.Tab = 0
        SSTabInitial.Tab = 1

End Sub

OR

Private Sub SSTabInitial_Click(PreviousTab As Integer)


Select Case PreviousTab

Case 0  ' Personal Data
        	Do something
        
Case 1  ' Citizenship/Insurance Status
        	Do something
        
End Select

End Sub


HTH,
Lorraine
-----Original Message-----
From: dba-vb-bounces at databaseadvisors.com
[mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Griffiths,
Richard
Sent: Tuesday, January 20, 2004 11:44 AM
To: 'dba-vb at databaseadvisors.com'
Subject: RE: [dba-VB] Tabstrip Control - VB6


Seth

the TabStrip that I am using (MS Tabbed Dialog tabctl32) does not have this
propery/method .Pages

Richard



> -----Original Message-----
> From:	Seth Galitzer [SMTP:sgsax at ksu.edu]
> Sent:	20 January 2004 16:30
> To:	dba-vb at databaseadvisors.com
> Subject:	Re: [dba-VB] Tabstrip Control - VB6
> 
> Richard,
> 
> Use the SetFocus method of the page to simulate clicking on the tab. 
> Tab control pages can be named, like any other control.  Here's some
> code:
> 
> tabMyTabControl.Pages("pgeMyPage").SetFocus
> 
> A page can be identifed by its name or index value.
> 
> Seth
> 
> On Tue, 2004-01-20 at 09:30, Griffiths, Richard wrote:
> > Hi Group
> > 
> > Having problems trying to code a tabstrip click i.e. code to change the
> tab
> > - can't seem to be able to find the correct method.
> > Any ideas
> > 
> > Thanks
> > Richard
> > 
> 
> -- 
> Seth Galitzer			sgsax at ksu.edu
> Computing Specialist		http://puma.agron.ksu.edu/~sgsax
> Dept. of Plant Pathology
> Kansas State University
> 
> _______________________________________________
> dba-VB mailing list
> dba-VB at databaseadvisors.com
> http://databaseadvisors.com/mailman/listinfo/dba-vb
> http://www.databaseadvisors.com
> 

_______________________________________________
dba-VB mailing list
dba-VB at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/dba-vb
http://www.databaseadvisors.com



---------------------------------------------------------
This e-mail transmission may contain information that is proprietary, privileged and/or confidential and is intended exclusively for the person(s) to whom it is addressed. Any use, copying, retention or disclosure by any person other than the intended recipient or the intended recipient's designees is strictly prohibited. If you are not the intended recipient or their designee, please notify the sender immediately by return e-mail and delete all copies. 

---------------------------------------------------------



More information about the dba-VB mailing list