InternetExplorer control messes with focus

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Wolfling
    New Member
    • Nov 2007
    • 9

    #1

    InternetExplorer control messes with focus

    I have a small VB6 app that uses an InternetExplore r control to retrieve some information from a website. It uses a polling technique (eg check the website every 60 seconds). My app remains hidden until it gets a particular response from the website, and then pops up for the user to see.

    I'm noticing that when my app polls the website, even though my app is hidden, the windows focus jumps away momentarily. For example, I start my app and then open MS Word and start typing. Every 60 seconds, MS Word loses the focus for about a second - and then gets the focus back. Naturally, this is quite annoying as I lose a word or two out of my sentences every 60 seconds.

    It is unclear where the focus is going when it happens.

    Any ideas why this is happening? And how to stop it?
  • VBWheaties
    New Member
    • Feb 2008
    • 145

    #2
    Not 100% sure but make sure your form is hidden rather than visible = false.

    Comment

    • Wolfling
      New Member
      • Nov 2007
      • 9

      #3
      I'm going to have a play with using URLMon.DLL instead of shdocvw.dll. The files I'm pulling from my website are 'raw' text anyway, so I don't need any of the HTML parsing stuff.

      Shall repost if that fixes it.

      Comment

      • sunil potdar
        New Member
        • Mar 2008
        • 1

        #4
        Hi friend,
        How to create in internet Explorer control messes with focus.
        Thanking You.

        Comment

        Working...