我是新鲜的。
灵活治理
Header 01 .... 31
Values .........
如果我点击表塔顿,那么,我会把重点转移到同一行的下囚室。
Ascii
Private Sub flexgrid_KeyPress(KeyAscii As Integer)
Select Case KeyAscii
Case 48 To 57
flexgrid.Text = flexgrid.Text & Chr(KeyAscii)
Case 46 Dot
flexgrid.Text = flexgrid.Text & Chr(KeyAscii)
Case 8
If Len(flexgrid.Text) > 0 Then
flexgrid.Text = Left(flexgrid.Text, (Len(flexgrid.Text) - 1))
End If
Case Else
KeyAscii = 0
Beep
End Select
End Sub
如何做到这一点。
And also how to change the particular cell background color. Code
For i = 1 To flexgrid.Rows - 1
flexgrid.TextMatrix(i, 33) = vbred It s giving value like 255
flexgrid.TextMatrix(i, 33) = .CellBackColor = vbred It s giving value False
Next i
任何想法和建议?