General Next Page button for tab control?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello,

Is there a way to program a Next Page button for a tab control that can be
put in the form's header and that'll go to the next page, regardless of what
page I am on?

Thank you.
 
Yes its possible, but why do it?
Its a good idea to stay away from non-standard user-interfaces.

Dorian
 
I want to do it because it would be helpful and save people some scrolling.
Can you help me with the programming?
 
The Tab Control for the example below has 5 pages. The Pages collection
index starts at 0. The Value property of the Tab Control contains the index
number of the current page.

Private Sub Command6_Click()
Dim lngPageNo As Long

lngPageNo = Me.TabCtl0.Value
If lngPageNo = 4 Then
lngPageNo = 0
Else
lngPageNo = lngPageNo + 1
End If
Me.TabCtl0.Pages(lngPageNo).SetFocus
End Sub
 
Works great, thank you very much!

Klatuu said:
The Tab Control for the example below has 5 pages. The Pages collection
index starts at 0. The Value property of the Tab Control contains the index
number of the current page.

Private Sub Command6_Click()
Dim lngPageNo As Long

lngPageNo = Me.TabCtl0.Value
If lngPageNo = 4 Then
lngPageNo = 0
Else
lngPageNo = lngPageNo + 1
End If
Me.TabCtl0.Pages(lngPageNo).SetFocus
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top