Ryan Gates
Ryan Gates

Reputation: 4539

Stretch Tabs to fill the space

How can I configure the UltraTabControl to make sure that the Tab Header's fill the available space?

I have the below code that generates the following form:

namespace StretchThoseTabs
{
    using Infragistics.Win.UltraWinTabControl;

    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();

            this.ultraTabControl2.Tabs.AddRange(new UltraTab[]
            {
                new UltraTab(false) {Text = "General"},
                new UltraTab(false) {Text = "Advanced Options"}
            });
        }
    }
}

Windows Form Example

Upvotes: 0

Views: 373

Answers (1)

Steve
Steve

Reputation: 216303

Use the TabLayoutStyle property.

you could set it to various options, for example the one required could be:

tabCtrl1.TabLayoutStyle = TabLayoutStyle.SingleRowSizeToFit;

Upvotes: 3

Related Questions