2
Reply

how to increase selected tab header text in tab control in window Application

vinod maurya

vinod maurya

Jan 29 2011 1:19 AM
3.1k
hello

I am working on Window base application,here i want increase selected tab header text in tab control at run time and remaining header text as usual.

i have wirten following code

ChangeColor in defined by me.

private void ChangeColor(int i, System.Drawing.Color color)
        {
            tabControl1.TabPages[i].BackColor=color;
            tabControl1.TabPages[i].Font = new System.Drawing.Font("Microsoft Sans Serif", 12f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
        }


but it is changing all text header and also changing inside text of tab.

With Regards
Vinod Maurya

Answers (2)