How to set backcolor for docking windows at runtime?

淺唱寂寞╮ 提交于 2019-12-12 03:47:50

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!