Print Page | Close Window

How do I change to select another tab page?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Controls
Forum Description: Topics Related to Codejock Controls
URL: http://forum.codejock.com/forum_posts.asp?TID=23894
Printed Date: 20 April 2024 at 3:18am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How do I change to select another tab page?
Posted By: Norika
Subject: How do I change to select another tab page?
Date Posted: 21 August 2019 at 11:08pm
Hi,

I have a question like below.

I use tab control and some tab pages in this control.

I want to switch to another tab automatically, so how do I white the code to select another tab?
It may be very simple coding but I don't understand events or commands when I look up help and sample programs.

I submitted to Codejock Support this article few weeks ago but no reply received yet.

Is my English sentence incomprehensible?
How can I use vb6 code to automatically switch to the selected tab?

Please help me.

SuitePro ActiveX 18.0 or later
IDE VB6.0 with SP6
Windows 7 32bit OS

Best Regards,
Norika



Replies:
Posted By: Norika
Date Posted: 04 September 2019 at 8:45pm
Hi, I can solve by myself like below by using TabControl.SelectedItem method just now.

    Dim i    As Byte
    Dim iMax As Byte
    
    With Me.TabControl1
        iMax = .ItemCount
        For i = 1 To iMax
            If .Item(i - 1).Caption = "My Tab Page" Then
                .SelectedItem = i - 1
                Exit For
            End If
        Next i
    End With

Even though I was a long-time subscription user, there was no response from user support after all.
Not enough user support assigned members? Or is my question too easy to solve? If so, I wanted a reply to some explanation.

Best Regards,
Norika


Posted By: Norika
Date Posted: 13 September 2019 at 8:06am
Me.TabControl1.Item(Me.TabControl1.SelectedItem).Caption



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net