Results 1 to 3 of 3

Thread: [RESOLVED] Timer control takes focus

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2003
    Posts
    259

    Resolved [RESOLVED] Timer control takes focus

    i had this open but reopened it cause its still a problem. the following code when ran in the timer every minute forces focus back to the app. is there another way where the code is run but doesnt force itself back on top and take focus away from other apps that might be open, or is this just the way it is?

    timer code

    Code:
    intNumberOfBOLOS = CInt(NumFiles(MainForm.strDataPath & "\BOLO\"))
    
    If intBoloCountTimer > intNumberOfBOLOS Then
        intBoloCountTimer = 1 ' reset it cause we have gone over so restart
    End If
    
    Form4.AcroPDF1.LoadFile (MainForm.strDataPath & "\BOLO\Bolo" & intBoloCountTimer & ".pdf")
    Form4.AcroPDF1.setShowToolbar False

  2. #2
    VB-aholic & Lovin' It LaVolpe's Avatar
    Join Date
    Oct 2007
    Location
    Beside Waldo
    Posts
    19,541

    Re: Timer control takes focus

    You'll want to show us more code. I'm guessing the setShowToolbar routine is setting focus? You'll need to identify what code is causing your form to regain focus.
    Insomnia is just a byproduct of, "It can't be done"

    Classics Enthusiast? Here's my 1969 Mustang Mach I Fastback. Her sister '67 Coupe has been adopted

    Newbie? Novice? Bored? Spend a few minutes browsing the FAQ section of the forum.
    Read the HitchHiker's Guide to Getting Help on the Forums.
    Here is the list of TAGs you can use to format your posts
    Here are VB6 Help Files online


    {Alpha Image Control} {Memory Leak FAQ} {Unicode Open/Save Dialog} {Resource Image Viewer/Extractor}
    {VB and DPI Tutorial} {Manifest Creator} {UserControl Button Template} {stdPicture Render Usage}

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2003
    Posts
    259

    Re: Timer control takes focus

    yeah that was the line that was doing it. its a shame cause that hides a tool bar that i dont want. whats the best way to display a pdf file? these will be pdf's with peoples pictures to its just viewing needed. i scroll through them with the timer. what i have now works using the acropdf control but if there is another way i would like to hear about it

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