Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Autoresize tabpage

Status
Not open for further replies.

apex1x

IS-IT--Management
Aug 14, 2002
396
0
0
US
I have a tabpage that autoresizes based on the following code:
Code:
  Private Sub InputPanel1_EnabledChanged(ByVal sender As Object, _
 ByVal e As System.EventArgs) Handles InputPanel1.EnabledChanged
        visiblerect = InputPanel1.VisibleDesktop.Height
        If InputPanel1.Enabled = False Then
            TabControl1.Height = taboriginalheight
        Else
            visiblerect = InputPanel1.VisibleDesktop.Height
            TabControl1.Height = visiblerect
        End If
    End Sub

The question would be: How do I have the tabpage (this is on version 2 of .net fw) to automatically scroll to whatever box/checkbox/combobox the user has selected before tapping the inputpanel(keyboard)? Currently the tabpage will by default scroll to the top of the resized page.

Any tips would be welcome. If I haven't explained clearly, ask away, thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top