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
570
Embed a button in TabControl header
posted

Is it possible to embed a button in a TabControl header?

 

Thanks,

Justin

Parents
No Data
Reply
  • 44743
    posted

    Are you just looking for a close button? Because this is available by setting the UltraTabControl.CloseButtonLocation to Tab. If you want some other button, you can probably just reuse the close button. You can change the button image by setting the CloseButtonAppearance.Image property. And then you can handle the UltraTabControl.TabClosing event. Set Cancel to True on the event args so the tab doesn't actually close and then perform your button click logic. However, with this solution, you lose the ability for the user to close the tabs.

Children