I figured this out
I added:
Private tbPge As TabPage
Placed it just inside:
Public Class Form2
Then rewrote the code as follows:
Private Sub InputPanel1_EnabledChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles InputPanel1.EnabledChanged
If InputPanel1.Enabled = False Then
For Each Me.tbPge In tabCollect.TabPages
tbPge.AutoScroll = False
Next
tabCollect.Height = 268
tabCollect.Width = 240
Else
For Each Me.tbPge In tabCollect.TabPages
tbPge.AutoScroll = True
tbPge.AutoScrollMargin = New Size(5, 5)
Dim ctrl As Control
For Each ctrl In tbPge.Controls
If TypeOf ctrl Is TextBox Then
If ctrl.Focused = True Then
Dim intpos As Integer
intpos = ctrl.Location.Y
tbPge.AutoScrollPosition = New Point(0, intpos - tbPge.AutoScrollPosition.Y)
End If
End If
Next
Next
tabCollect.Height = InputPanel1.VisibleDesktop.Height
tabCollect.Width = InputPanel1.VisibleDesktop.Width
End If
End Sub
That works and I am back in business.