问题
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 .. ?
回答1:
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.
来源:https://stackoverflow.com/questions/11846982/how-to-set-backcolor-for-docking-windows-at-runtime