Private Sub Form_Load() MSFlexGrid1.FormatString = "^No.|^SeqID|^DATADATE" End SubPrivate Sub MSFlexGrid1_MouseMove(Button As Integer, Shift As Integer, x As Single, y As Single) With MSFlexGrid1 If .MouseRow = 0 Then Dim sInfo() sInfo = Array("编号", "序号", "数据日期") .ToolTipText = sInfo(.MouseCol) Else .ToolTipText = "" End If End With End Sub
MSFlexGrid1.FormatString = "^No.|^SeqID|^DATADATE"
End SubPrivate Sub MSFlexGrid1_MouseMove(Button As Integer, Shift As Integer, x As Single, y As Single)
With MSFlexGrid1
If .MouseRow = 0 Then
Dim sInfo()
sInfo = Array("编号", "序号", "数据日期")
.ToolTipText = sInfo(.MouseCol)
Else
.ToolTipText = ""
End If
End With
End Sub