Results 1 to 3 of 3

Thread: What do else do I have to do?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Mar 2005
    Posts
    86

    Question What do else do I have to do?

    I have a function that (SendKeys "ESC") to my app. It works, however the if the main screen loses focus to a msgbox the function stops working. My question is, is there something that I'm doing wrong?

    Thanks in advance.....

  2. #2
    Hyperactive Member
    Join Date
    Dec 1999
    Posts
    321

    Re: What do else do I have to do?

    MsgBox:es are modal so to answer your question No, you cant.

    You could create another form/process to sendkeys so that a msgbox will not halt it's instructions.
    Signed, Rodik ([email protected])
    Programmer,usesVB6ED
    ===========================
    Copyright©RodikCo,2002.

    Dont mind this signature ;] Its old

  3. #3
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: What do else do I have to do?

    Since its in your app then couldnt you change the focus to another control quite easily with .SetFocus?

    Sendkeys are dependent upon the form/control having input focus.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

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