本文介绍了标签页标题颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! HI i尝试使用此代码更改标签控件中标签页的标题颜色 Dim g As Graphics = TabControl1.CreateGraphics Dim rect As Rectangle = 新 Rectangle(((TabControl1.SelectedIndex * TabControl1.ItemSize.Width)_ + 2 ), 2 ,(TabControl1.ItemSize.Width - 2 ),(TabControl1.ItemSize.Height - 2 ) ) g.FillRectangle(Brushes.Lime,rect) g.DrawString(TabControl1.SelectedTab.Text, New Font(TabControl1.SelectedTab。 Font,FontStyle.Bold),Brushes.Red,rect)< / pre > 此代码 更改标题颜色 选中标签页 如何 使用此代码或 new 方式 更改颜色 标签页 3 JUST ??? < / pre > 解决方案 HIi try for change header color of tab pages in tab controls with this codeDim g As Graphics = TabControl1.CreateGraphics Dim rect As Rectangle = New Rectangle(((TabControl1.SelectedIndex * TabControl1.ItemSize.Width) _ + 2), 2, (TabControl1.ItemSize.Width - 2), (TabControl1.ItemSize.Height - 2)) g.FillRectangle(Brushes.Lime, rect) g.DrawString(TabControl1.SelectedTab.Text, New Font(TabControl1.SelectedTab.Font, FontStyle.Bold), Brushes.Red, rect)</pre>this codechange header color of selected tab pagehow to use this code or new way for change color of tabpage 3 JUST???</pre> 解决方案 这篇关于标签页标题颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 阿里云证书,YYDS!
05-23 20:24