0

I created a Docking windows program in csharp i want to change the color of that tabs after exe is getting executed.because those tabs will be added at run time.i can able to change the TabText but i cant able to set the values

          dockContainer1.ActiveDocument.DockHandler.TabText = "Welcome"

            |Tab1|Welcome|Tab3|
            |                     |
            |                     |
            |                     |
            |                     |
            |_____________________|

I want to change the Background color at runtime...how to do it .. ?

J. Steen
  • 15,470
  • 15
  • 56
  • 63
Aravind
  • 1,055
  • 2
  • 11
  • 15

1 Answers1

0

a little confused, but do you mean something like..

yourTab.BackColor = System.Drawing.Color.TheColourYouWant

if not, please try and explain more, but this is how you change the tab backing colour, in the designed and at runtime.

Kestami
  • 2,045
  • 3
  • 32
  • 47
  • yes i want to change like this..even i made code for Mdicontroller and Mdiclient..but color is not getting set – Aravind Aug 08 '12 at 05:46
  • can you not use my answer then..? this is how they do it in the designer, i see no reason why it wouldn't work in a class for at runtmie. – Kestami Aug 08 '12 at 08:11