02-11-2011 07:30 AM - edited 02-11-2011 07:32 AM
Hi guys!
I've created a program that copies some data from an Excel workbook. To do this I'm using Active X. The Excel workbook is located on a server and if the computer is not connected to the server, the user should get an errormessage. The problem is that when I run my program, I first get an errormessage from Excel, that it can't find the Workbook. When I press OK on that message, I then get the errormessage I created in my program. All in all, this is OK for me, but the annoying thing is that the errormessage from Excel doesn't come up. It stays behind the program, leaving the user to think everthing is crashed.
Please see the pictures:
This is what the user can stare at for hours if my program can't find the Excel Workbook. My program is in the errormessage fase, but it's waiting for the user to press OK in the Microsoft Excel Error Message which is hidden behind the window.
If you move the window a bit you can see the errormessage:
When I press OK in the errormessage window, my program continues and everything works as a charm. I've tried to change the windowproperties from default, to modal, to float, but nothing helps. Anyone with some suggestions?:)
P.S. If I've understood it right, this first errormessage is from a third party software. In this case Excel. So the question would be how to make popup mesages like that stay in front and not hide behind LabVIEW.
And sorry for posting JPG's. The size of the png's where over 1mb so I wasn't allowed to upload.