I have a tabbed form.My problem is that moving from page to page I want the top of page to be always seen but for now in pages with more data I have to move with scroll bar to get to the beginning.How can I adjust this?
The problem is caused by the Tab Order of controls on your form. The trick is to have a control at the top of each page gain focus when moving to that page:
Code:
Private Sub YourTabbedControlName_Change()
Select Case YourTabbedControlName
Case 0 ‘First Page
ControlOnPage1.SetFocus
Case 1 ‘Second page
ControlOnPage2.SetFocus
Case 2 ‘Third page
ControlOnPage3.SetFocus
End Select
End Sub
Notice that the Index is Zero-based, i.e. the first page is 0 (zero) not 1.