Results 1 to 8 of 8

Thread: [RESOLVED] Sendkeys error

Threaded View

  1. #1

    Thread Starter
    vbuggy krtxmrtz's Avatar
    Join Date
    May 2002
    Location
    In a probability cloud
    Posts
    5,573

    Resolved [RESOLVED] Sendkeys error

    This code:
    VB Code:
    1. Private Sub Text1_KeyPress(KeyAscii As Integer)
    2.     If KeyAscii = vbKeyReturn Then
    3.         KeyAscii = 0
    4.         SendKeys "{TAB}"
    5.     End If
    6. End Sub
    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?
    Attached Images Attached Images  
    Lottery is a tax on people who are bad at maths
    If only mosquitoes sucked fat instead of blood...
    To do is to be (Descartes). To be is to do (Sartre). To be do be do (Sinatra)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width