[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
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.
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