Stop Button - Vray Window

The stop rendering button in the V-Ray Rendering window automatically closes the window and calls the event VFBClosed. Is there any way for stop rendering to stop rendering but Not close the window? Furthermore, exiting the window with the top right close button closes the window but does not fire an event from my understanding. Is it possible to add an event to this button as its causing some headaches as I can’t add a listener to know when the window is closed. This is in the .NET SDK.

Thank you

Hi
Your window probably closes because your VRayRenderer object is destroyed after rendering ends (goes out of scope after a WaitForRenderEnd() call or something similar). If the renderer stays alive the window will not close when you press stop. The “X” button only hides the VFB -- you can show it again with VRayRenderer.VFB.Shown=true. The VFBClosed callback is called whenever you press the “X” button.

Thank you, I was able to fix both issues this way.