全局代码:Public Sub C1FlexGrid1_MouseEnter(sender As Object, e As EventArgs)
vars("a")= False
End Sub
Public Sub C1FlexGrid1_MouseLeave(sender As Object, e As EventArgs)
vars("a")= True
End Sub
窗口afterload事件
Dim t As C1.Win.C1FlexGrid.C1FlexGrid = e.Form.Controls("Table1").Table.grid
AddHandler t.MouseEnter, AddressOf C1FlexGrid1_MouseEnter
AddHandler t.MouseLeave, AddressOf C1FlexGrid1_MouseLeave
vars("a") = True
窗口TimerTick
If vars("a") Then
Dim t As Table = e.Form.Controls("Table1").Table
If t.Position < t.Rows.Count - 1 Then
t.Position += 1
Else
t.Position = 1
End If
End If