Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Controls
  New Posts New Posts RSS Feed - How do I change to select another tab page?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How do I change to select another tab page?

 Post Reply Post Reply
Author
Message
Norika View Drop Down
Groupie
Groupie
Avatar

Joined: 30 November 2006
Status: Offline
Points: 68
Post Options Post Options   Thanks (0) Thanks(0)   Quote Norika Quote  Post ReplyReply Direct Link To This Post Topic: How do I change to select another tab page?
    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
Back to Top
Norika View Drop Down
Groupie
Groupie
Avatar

Joined: 30 November 2006
Status: Offline
Points: 68
Post Options Post Options   Thanks (0) Thanks(0)   Quote Norika Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Norika View Drop Down
Groupie
Groupie
Avatar

Joined: 30 November 2006
Status: Offline
Points: 68
Post Options Post Options   Thanks (0) Thanks(0)   Quote Norika Quote  Post ReplyReply Direct Link To This Post Posted: 13 September 2019 at 8:06am
Me.TabControl1.Item(Me.TabControl1.SelectedItem).Caption
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down



This page was generated in 0.063 seconds.