asked on
ASKER
Protected Overrides Function ProcessCmdKey(ByRef msg As System.Windows.Forms.Message, ByVal keyData As System.Windows.Forms.Keys) As Boolean
Select Case msg.WParam.ToInt32()
Case CInt(Keys.Up)
SendKeys.Send("{UP}")
keybd_event(Keys.Up, MapVirtualKey(Keys.Up, 0), 2, 0) ' Down Arrow Up
Return True
Case CInt(Keys.Tab)
If Me.ActiveControl.GetType.ToString = "System.Windows.Forms.ComboBox" Then
SendKeys.Send("{ENTER}")
keybd_event(Keys.Enter, MapVirtualKey(Keys.Enter, 0), 2, 0) ' Down Arrow Up
Return True
End If
End Select
Return MyBase.ProcessCmdKey(msg, keyData)
End Function 'ProcessCmdKey
ASKER
ASKER
Visual Basic .NET (VB.NET) is an object-oriented programming language implemented on the .NET framework, but also supported on other platforms such as Mono and Silverlight. Microsoft launched VB.NET as the successor to the Visual Basic language. Though it is similar in syntax to Visual Basic pre-2002, it is not the same technology,
TRUSTED BY