Dim aa() As String = {"科目汇总表","总分类账"}
For i As Integer = 0 To aa.Length -1
If e.Sender.name = aa(i) Then
Dim fnt As New Font("宋体",9, FontStyle.Underline)
e.Sender.ForeColor = Color.Red
e.Sender.Font = fnt
End If
Next
---------------
Dim aa() As String = {"科目汇总表","总分类账"}
For i As Integer = 0 To aa.Length -1
If e.Sender.name = aa(i) Then
Dim fnt As New Font("宋体",9)
e.Sender.ForeColor = Color.Black
e.Sender.Font = fnt
End If
Next