This code:
works perfectly under Windows XP but produces the error in the attached image when I run the app (in the IDE) under Windows 7. Any ideas why?VB Code:
Private Sub Text1_KeyPress(KeyAscii As Integer) If KeyAscii = vbKeyReturn Then KeyAscii = 0 SendKeys "{TAB}" End If End Sub




Reply With Quote