// The client event WindowStateChanging takes two parameters sender and e // sender is the object which is raising the event // e is the WindowStateCancelEventArgs function WDW1_WindowStateChanging(sender, e) { var wdw = $find("WebDialogWindow1"); //Gets the current window state of the dialog var currentWindowState = e.get_currentWindowState(); //Gets the new window state of the dialog var newWindowState = e.get_newWindowState(); if (newWindowState == 1) { //Sets the ability to drag control by mouse to false wdw.set_moveable(0); } }
Me.WebDialogWindow1.ClientEvents.WindowStateChanging = "WDW1_WindowStateChanging"
this.WebDialogWindow1.ClientEvents.WindowStateChanging = "WDW1_WindowStateChanging";
Target Platforms: Windows 10, Windows 8.1, Windows 8, 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