Hi,
I have a CVI application that uses an ActiveX control to display a PDF file on a panel. I created navigation buttons to allow a user to view the next / previous PDF file in a series. The names of the PDF files included in the series are read from a configuration file so that the PDF file library content can be tailored for a particular need.
The app is working pretty well except that when I select my 'NEXT' navigation button to display the next PDF file in the series, it works 2, maybe 3, sometimes 4, but rarely 5 times in a row until my project quits executing the command button callback events. It seems random on how many times it might work before this happens. I found that if I click somewhere off my app panel, I can then come back to my app and click my 'NEXT' button and will work again for a few more tries and then hang again.
Note: my app has a timer and its events continue to run when the problem occurs, so based on forum searches, I've attempted to put 'SetForegroundWindow'() and 'MakeApplicationActive'() calls into the timer callback but I still can't get my app to retain focus. This behavior really has me baffled.
Any ideas? Thanks!
Tim