Intersoft ClientUI Documentation
ActiveWindow Property
Example 



Gets the currently active window in UXDesktop.
Syntax
Public Property ActiveWindow As IWindow
Dim instance As UXDesktop
Dim value As IWindow
 
instance.ActiveWindow = value
 
value = instance.ActiveWindow
public IWindow ActiveWindow {get; set;}
public:
property IWindow^ ActiveWindow {
   IWindow^ get();
   void set (    IWindow^ value);
}
Example
The following example shows how to get the active window in the UXDesktop.
private void UXButton_Click(object sender, RoutedEventArgs e)
{
    MessageBox.Show((desktop.ActiveWindow as UXWindow).Header.ToString());
}
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

UXDesktop Class
UXDesktop Members
Window and Dialog Boxes Overview

Send Feedback