Open and Close Windows via code

4 replies. Last post: September 28, 2010 12:45 PM by Jimmy Petrus
Tags :
  • New Discussion
  • New Question
  • New Product Feedback

Hi,

I am trying to Close a window via code. In the code behine of the UXPage I have the following code:

var window =(UXWindow) this.GetWindowHost();
window.Hide();

This however throws an exception

((System.Exception)(ex.InnerException)).StackTrace

   at Intersoft.Client.UI.Aqua.UXDock.UXDock.GetContainerFromIndex(Int32 index)

   at Intersoft.Client.UI.Aqua.UXDock.UXDesktopDock.FindButton(Object targetContext, SearchFlags searchButtonFlags)

   at Intersoft.Client.UI.Aqua.UXDock.UXDesktopDock.’’(Object sender, WindowEventArgs e)

I have tried using window.Close(); but still throws the exception. If I put a catch around this it. The error is not thrown and the window closes.

The 2nd problem is trying to programatically open a window without clicking of the navigation docking component.

 

Please could you also update when help file will be available

 

Kind Regards

 

 

 

All times are GMT -5. The time now is 7:42 PM.
Previous Next