Binding navigator on form

lsdev

Well-known member
Joined
Jan 20, 2008
Messages
61
Programming Experience
1-3
Hi,
Is there a way of getting a binding navigator so that is sits at the bottom of the form, so as you scroll its always there for access? The only options available seem to just pin it at the bottom of the form and mine requires you to scroll to the bottom to access the navigator
 
You have to undock it and use Scroll event to set its Location, this enables the control to "float" while client area is scrolled:
VB.NET:
Private Sub Form1_Scroll(ByVal sender As Object, ByVal e As System.Windows.Forms.ScrollEventArgs) Handles Me.Scroll
    If e.ScrollOrientation = ScrollOrientation.VerticalScroll Then
        Dim pt As Point = Me.TblBindingNavigator.Location
        pt.Offset(0, e.NewValue - e.OldValue)
        Me.TblBindingNavigator.Location = pt
    End If
End Sub
 
Back
Top