Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
155
UltraToolBarManager Docking at top and Bottom
posted

I want feature like UltraToolBarManager will dock at top as well as bottom.

So By Default setting is pnlToolBar.Dock = DockStyle.Top

I want pnlToolBar.Dock = DockStyle.Bottom also after drag end toolbar.

So I used below code in that case docking is working at top and bottom but two time mouse enter will happen:

'Private Sub UltraToolbarsManager1_MouseEnterElement(sender As System.Object, e As Infragistics.Win.UIElementEventArgs) Handles UltraToolbarsManager1.MouseEnterElement

If Me.pnlToolBar.MousePosition.Y > Me.Parent.Height / 2 Then

Me.pnlToolBar.Dock = DockStyle.Bottom

Else

 Me.pnlToolBar.Dock = DockStyle.Top

End If

End Sub

So,I want only one drag drop docking will happen.

Can you please suggest me solution for that?