How do I change to select another tab page? |
Post Reply |
Author | |
Norika
Groupie Joined: 30 November 2006 Status: Offline Points: 70 |
Post Options
Thanks(0)
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 |
|
Norika
Groupie Joined: 30 November 2006 Status: Offline Points: 70 |
Post Options
Thanks(0)
|
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 |
|
Norika
Groupie Joined: 30 November 2006 Status: Offline Points: 70 |
Post Options
Thanks(0)
|
Me.TabControl1.Item(Me.TabControl1.SelectedItem).Caption
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |