小编Ara*_*ind的帖子

在WinForm中更改标题栏的颜色

是否可以在C#中更改WinForm标题栏的颜色?

          __________________________
         [Form1_______________-|[]|X] <- I want to change the color of this
         |                          |
         |                          |
         |                          |
         |__________________________|
Run Code Online (Sandbox Code Playgroud)

.net c# background titlebar winforms

38
推荐指数
4
解决办法
6万
查看次数

如何在C#winforms中更改未使用的空格选项卡的背景颜色?

防爆

  |Tab1|Tab2|Tab3| {    }
  |                     |
  |                     |
  |                     |
  |                     |
  |_____________________|
Run Code Online (Sandbox Code Playgroud)

我能够改变backcolorforecolorTab..但我想改变这种状况{}的颜色- >空的空间这是可能做到这一点...它显示默认的winforms颜色..帮我解决..

 private void Form1_Load(object sender, EventArgs e)
    {

    }


    private void tabControl1_DrawItem(object sender, System.Windows.Forms.DrawItemEventArgs e)
    {
        Font fntTab;
        Brush bshBack;
        Brush bshFore;

        if ( e.Index == this.tabControl1.SelectedIndex)
        {
            fntTab = new Font(e.Font, FontStyle.Bold);
            bshBack = new System.Drawing.Drawing2D.LinearGradientBrush(e.Bounds, SystemColors.Control, SystemColors.Control, System.Drawing.Drawing2D.LinearGradientMode.BackwardDiagonal);
            bshFore = Brushes.Black;
            //bshBack = new System.Drawing.Drawing2D.LinearGradientBrush(e.Bounds, Color.LightSkyBlue , Color.LightGreen, System.Drawing.Drawing2D.LinearGradientMode.BackwardDiagonal);
            //bshFore = Brushes.Blue;
        }
        else
        {
            fntTab = e.Font; …
Run Code Online (Sandbox Code Playgroud)

c# tabs tabcontrol winforms

4
推荐指数
2
解决办法
2万
查看次数

在C#Winforms中是否有可能使用MetroUI?

我想通过使用MetroUI来改变C#winform的正常外观..是否有可能这样做

c# user-interface winforms microsoft-metro

3
推荐指数
1
解决办法
9167
查看次数