I cannot delete a cell value in the datagrid using the backspace key.
I have to use Ctrl+0(zero) to null the value. Is there easier
way to fix this? I also tried overriding the base class member(below)
but it doesn't work. Any help appreciated very much.
Protected Overrides Function ProcessCmdKey(ByRef msg As System.Windows.Forms.Message, ByVal keyData As System.Windows.Forms.Keys) As Boolean
If msg.WParam.ToInt32() = CInt(Keys.Enter) Then
SendKeys.Send("{Tab}")
Return True
End If
If msg.WParam.ToInt32() = CInt(Keys.Back) Then
SendKeys.Send("{ControlKey + 0}")
Return True
End If
Return MyBase.ProcessCmdKey(msg, keyData)
End Function 'ProcessCmdKey
I have to use Ctrl+0(zero) to null the value. Is there easier
way to fix this? I also tried overriding the base class member(below)
but it doesn't work. Any help appreciated very much.
Protected Overrides Function ProcessCmdKey(ByRef msg As System.Windows.Forms.Message, ByVal keyData As System.Windows.Forms.Keys) As Boolean
If msg.WParam.ToInt32() = CInt(Keys.Enter) Then
SendKeys.Send("{Tab}")
Return True
End If
If msg.WParam.ToInt32() = CInt(Keys.Back) Then
SendKeys.Send("{ControlKey + 0}")
Return True
End If
Return MyBase.ProcessCmdKey(msg, keyData)
End Function 'ProcessCmdKey