LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to detect window close event and do some task before exiting

Solved!
Go to solution

Hi 

Anyone knows how to detect window close event and do some task before exiting ?

 

 

Sridhar

0 Kudos
Message 1 of 4
(5,858 Views)
Solution
Accepted by topic author sridar.m

Use Event structure to detect window close event. In event structure,

 

Select This VI -> Panel close event for this task. See attached picture.

0 Kudos
Message 2 of 4
(5,851 Views)

Thank you Mr Kumar B

I have tested it with "Panel Close ?" event. It works but I cannot discard it.

 

Let me know how to discard the same event.

 

And will it work with executables ? Can i discard the same event to prevent it from exiting?

 

 

sridhar 

0 Kudos
Message 3 of 4
(5,815 Views)
Yes .You can discard the panel close event by passing "TRUE" boolean value to the "discard ?" terminal which is lied in the right side of that panel close(filter) event.& It will work in executables.  See attached picture.
0 Kudos
Message 4 of 4
(5,803 Views)