NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Runtime error dialog hidden by custom C# GUI

I have a sequence file that has a front end GUI written in C#. When the MainSequence is run, it calls ShowForm() on the C# GUI in a separate thread. The GUI is used to select which other sequences to run in the sequence file as well as display percent complete status, etc.

 

My problem is that if an error occurs, I do not see the Runtime error dialog until I close the GUI. Does anyone have any ideas on how to get the runtime dialog box to show while the GUI form is displayed? Or even some way to update the GUI to show there is an error?

0 Kudos
Message 1 of 4
(4,425 Views)

The simplest solution might be to make the GUI transparent so you can see the form and what is behind it.

 

Set the forms Opacity property to %50 just before showing the form. (Form.Opacity = 0.5). You can adjust the forms transparency until your satisfied that you can see the gui and what is behind it.

0 Kudos
Message 2 of 4
(4,421 Views)

That's a good idea and I gave it a shot but I still don't see the error message pop up until I close the form.

0 Kudos
Message 3 of 4
(4,395 Views)

After digging further, I think this is an issue with UIMessages. I will reframe this issue in a new message.

0 Kudos
Message 4 of 4
(4,383 Views)