I got Option Strict On requires all variable declarations to have an 'As' clause. on the following line of code, when I turn on the option on strict.
Private Const WM_KEYDOWN = &H100
How to add AS into it?
What is WM_KEYDOWN's type?
I got the code clock from http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c44c.aspx#q898q
. It added a confirmation popup to the datagrid if user wants to delete a row from it. Here is its only function.
Public Overrides Function PreProcessMessage(ByRef msg As System.Windows.Forms.Messa
ge) As Boolean
Dim keyCode As Keys = CType((msg.WParam.ToInt32 And Keys.KeyCode), Keys)
If msg.Msg = WM_KEYDOWN And keyCode = Keys.Delete Then
If MessageBox.Show("Delete This Row?", "Confirm Delete", MessageBoxButtons.YesNo) = DialogResult.No Then