Intersoft WebDesktop Documentation
OnWindowCreating Property
See Also  Example Send Feedback
ISNet.WebUI.WebDesktop Namespace > WebDesktopClientSideEvents Class : OnWindowCreating Property


Glossary Item Box

Gets or sets the javascript function to invoke when a window is in creation process.

Syntax

Visual Basic (Declaration) 
Public Property OnWindowCreating As String
Visual Basic (Usage)Copy Code
Dim instance As WebDesktopClientSideEvents
Dim value As String
 
instance.OnWindowCreating = value
 
value = instance.OnWindowCreating
C# 
public string OnWindowCreating {get; set;}

Example

The following codes show you how to handle OnWindowCreating event to manipulate window settings before the window is created.
C#Copy Code
function WebDesktopManager1_OnWindowCreating(id, win)
{    
    if (win.Name == "wndContactManagement")    
    {        
        win.Size.Width = 780;        
        win.Size.Height = 450;        
        win.AllowResize = "No";        
        win.AllowMaximize = "No";    
    }
}

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

© 2012 Intersoft Solutions Corp. All Rights Reserved.