28-06-13, 12:22 PM
عفوا الأكواد ظهرت بشكل غير صحيح
وهذا هو التصحيح
بالتوفيق
وهذا هو التصحيح
كود :
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
If TypeOf Me.ActiveControl Is Button Then
Return MyBase.ProcessCmdKey(msg, keyData)
Else
SendKeys.Send("{Tab}")
Return True
End If
End If
Return MyBase.ProcessCmdKey(msg, keyData)
End Functionبالتوفيق

