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
要怎么改呢?