KeyPressEdit事件
If e.Col.Name = "第一列" AndAlso Asc(e.KeyChar) <> 8 Then
Dim d As Decimal
If e.KeyChar <> "."
If Decimal.TryParse(e.KeyChar,d) = False Then
e.Cancel = True '且取消此次按键
Return
End If
Else
StatusBar.Message1 = Decimal.TryParse(e.Text & e.KeyChar,d)
StatusBar.Message2 = e.Text & e.KeyChar
If Decimal.TryParse(e.Text & e.KeyChar,d) = False Then