找到原因了: 为了实现编辑单元格的时候,能同步在文本框显示,编辑文本框的时候也能够反馈到单元格,在这里产生了问题:
- Private Sub FpSpread1_EditChange(ByVal sender As Object, ByVal e As FarPoint.Win.Spread.EditorNotifyEventArgs) Handles FpSpread1.EditChange
- TextBox1.Text = FpSpread1.ActiveSheet.ActiveCell.Text
- End Sub
- Private Sub txtFormula_TextChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles TextBox1.TextChanged
- FpSpread1.ActiveSheet.ActiveCell.Text = TextBox1.Text
- End Sub
复制代码 后一段代码使得输入数字加上 . - 等符号的时候出现了问题,请问如何改善? |