Intersoft ClientUI Documentation
ActiveWindow Property
See Also  Example Send Feedback
Intersoft.Client.UI.Aqua.UXDesktop Namespace > UXDesktop Class : ActiveWindow Property






Gets the currently active window in UXDesktop.

Syntax

Visual Basic (Declaration) 
Public Property ActiveWindow As IWindow
Visual Basic (Usage)Copy Code
Dim instance As UXDesktop
Dim value As IWindow
 
instance.ActiveWindow = value
 
value = instance.ActiveWindow
C# 
public IWindow ActiveWindow {get; set;}
Delphi 
public read-write property ActiveWindow: IWindow; 
JScript 
public function get,set ActiveWindow : IWindow
Managed Extensions for C++ 
public: __property IWindow* get_ActiveWindow();
public: __property void set_ActiveWindow( 
   IWindow* value
);
C++/CLI 
public:
property IWindow^ ActiveWindow {
   IWindow^ get();
   void set (    IWindow^ value);
}

Example

The following example shows how to get the active window in the UXDesktop.
C#Copy Code
private void UXButton_Click(object sender, RoutedEventArgs e)
{
    MessageBox.Show((desktop.ActiveWindow as UXWindow).Header.ToString());
}

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2012 All Rights Reserved.