码迷,mamicode.com
首页 > 其他好文 > 详细

不同的case不同的底色

时间:2020-01-10 12:25:22      阅读:60      评论:0      收藏:0      [点我收藏+]

标签:int   bst   integer   div   substr   现在   col   rom   idg   

  ‘_row.DefaultCellStyle.BackColor = color_inCase     ‘  底色改为 淡红
            ‘  上面以前,所有的case都是一种底色
            ‘  下面现在,不同的case不同的底色(取决于其 case ID)
            Dim idR As Integer = CInt(_caseID.Substring(3, 7)) * 25
            Dim idG As Integer = CInt(_caseID.Substring(8, 2)) * 100 + CInt(_caseID.Substring(6, 4))
            Dim idB As Integer = CInt(_caseID.Substring(7, 3)) * 10
            idR = 255
            idG = idG Mod 255
            idB = idB Mod 255
            Dim _color As Color = Color.FromArgb(idR, idG, idB)
            _row.DefaultCellStyle.BackColor = _color     ‘  底色改为 这种颜色

不同的case不同的底色

标签:int   bst   integer   div   substr   现在   col   rom   idg   

原文地址:https://www.cnblogs.com/gaoleionline/p/12175384.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!