以文本方式查看主题 - Foxtable(狐表) (http://foxtable.net/bbs/index.asp) -- 专家坐堂 (http://foxtable.net/bbs/list.asp?boardid=2) ---- 窗口中标签,的设置? (http://foxtable.net/bbs/dispbbs.asp?boardid=2&id=107849) |
-- 作者:yancheng -- 发布时间:2017/10/11 13:03:00 -- 窗口中标签,的设置? MouseHover代码如下: Dim aa() As String = {"科目汇总表","总分类账"} Dim aaa As new List(of String ) aaa.AddRange(aa) For i As Integer = 0 To aa.Length -1 If e.Sender.name = str(i) Then \'If aaa.Indexof( e.Sender. ) <> -1 Then Dim fnt As New Font("宋体",9, FontStyle.Underline) e.Sender.ForeColor = Color.Red e.Sender.Font = fnt End If Next MouseLeave代码如下: Dim aa() As String = {"科目汇总表","总分类账"} Dim aaa As new List(of String ) aaa.AddRange(aa) For i As Integer = 0 To aa.Length -1 If e.Sender.name = str(i) Then \'If aaa.Indexof( e.Sender. ) <> -1 Then Dim fnt As New Font("宋体",9) e.Sender.ForeColor = Color.Black e.Sender.Font = fnt End If Next 要怎么改呢? |
-- 作者:有点甜 -- 发布时间:2017/10/11 14:32:00 -- Dim aa() As String = {"科目汇总表","总分类账"} e.Sender.ForeColor = Color.Red e.Sender.Font = fnt
---------------
Dim aa() As String = {"科目汇总表","总分类账"} |