我想做的效果是,按tab键活着鼠标点到该单元格的时候,那么就实现把该单元格的内容从右往左选中。
代码如下:
Private Sub dw_振込入金取込_EditingControlShowing(ByVal sender As System.Object, ByVal e As GrapeCity.Win.MultiRow.EditingControlShowingEventArgs) Handles dw_振込入金取込.EditingControlShowing
Dim t As TextBox = TryCast(e.Control, TextBox)
If t IsNot Nothing Then
If Not t.IsHandleCreated Then
t.CreateControl()
End If
t.BeginInvoke(New System.Action(AddressOf Me.SetMousePos))
End If
End Sub
Private Sub SetMousePos()
SendKeys.Send("{END}")
SendKeys.Send("+{HOME}")
End Sub
现在的问题是,按Tab键是对了,但是鼠标点击到该单元格的时候,还是跟原先一样,直接点到单元格内容的最右边去了。另外,MultiRow的editmode = editonenter
MultiRow版本:5.0 |
|