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
20
Set Tab active at DragOver
posted

I want to have drag&drop behaviour between grids on different tabs in a UltraTabControl. When I drag an object from a grid row to a different tab, I want this tab page to be selected and visible.How do I manage this?

Parents
No Data
Reply
  • 44743
    posted

    I haven't tried this, but I think it should work:

    1. Handle the DragOver event on the tab control.

    2. Convert the screen coordinates on the event args to client coordinates using the PointToClient method on the tab control.

    3. Pass the client point into the TabFromPoint method on the tab control.

    4. If the tab returned is not null, set its Selected property to True.

Children
No Data