这个问题我已经解决了,不过还是要谢谢您。
下面是解决方案:
- Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
- 'Me.FpSpread1.EditModePermanent = True
- 'Me.FpSpread1.EditModeReplace = True
- 'Me.FpSpread1.EditMode = True
- End Sub
- Private Sub FpSpread1_Enter(ByVal sender As Object, ByVal e As System.EventArgs) Handles FpSpread1.Enter
- MsgBox("OK")
- Me.TextBox1.Focus()
- End Sub
- Private Sub FpSpread1_LeaveCell(ByVal sender As Object, ByVal e As FarPoint.Win.Spread.LeaveCellEventArgs) Handles FpSpread1.LeaveCell
- Me.FpSpread1.EditModePermanent = True
- Me.FpSpread1.EditModeReplace = True
- Me.FpSpread1.EditMode = True
- End Sub
- Private Sub FpSpread1_MouseDown(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles FpSpread1.MouseDown
- Me.FpSpread1.EditModePermanent = False
- Me.FpSpread1.EditModeReplace = False
- End Sub
复制代码 |