Author Topic: Issue with resizing panel  (Read 6764 times)

codingduo

  • Newbie
  • *
  • Posts: 19
Hey Steven,

we're not sure if we're using the TabControl in the correct way. We're using Autosize=true and DockStyle.Fill to use all of the panels space. But whenever the user resizes the panel height it maximizes its size to the whole area its docked in. Could you please give us a hint on how to use it in the correct way. Thank you very much!

Please click on the image to see the GIF animation:



Link to our source code

Steven

  • Administrator
  • Sr. Member
  • *****
  • Posts: 34346
add a resize handler to the parent panel and set the tab control size appropriately from that event

codingduo

  • Newbie
  • *
  • Posts: 19
Thank you Steven for your quick response and sorry for our late reply.

We solved our resize problem. Turned out, that we missunderstood the < 0 return in the OnDockablePanelCreated() method. Now we return 0 and the resizing works as we intend it.

Best