Form
Wisej.Web.Form
Last updated
Was this helpful?
Wisej.Web.Form
Last updated
Was this helpful?
Namespace: Wisej.Web
Assembly: Wisej.Framework (4.0.0.0)
Represents a window or dialog box that makes up an application's user interface.
Default constructor.
Initializes a new instance of the class with the specified initial settings.
onClosed
controls
onClosed
location
The location of the form on the screen.
size
The size of the form.
controls
location
The location of the form on the screen.
size
The size of the form.
onClosed
location
The location of the form on the screen.
size
The size of the form.
controls
onClosed
The default value is null.
The deafult value is null.
The deafult value is null.
The default value is null.
Throws:
Default value is Form[0] (an empty array of Forms)
Throws:
Default value is a Size with Width = 0, Height = 0Throws:
Default value is Form[0] (an empty array of Forms)
Throws:
Throws:
Activates the form and gives it focus.
Adds an owned form to this form.
ownedForm
Centers the window on the current browser size.
Closes the form.
Deactivate and remove the disposed window from the open form collections.
disposing
true when this method is called by the application rather than a finalizer.
e
Adds references components to the list. Referenced components can be added individually or as a reference to a collection.
items
Container for the referenced components or collections.
e
e
e
e
Raised when the control is created.
e
e
e
e
e
e
e
e
e
e
e
e
e
e
e
Fires the ToolClick event.
e
Processes the event from the client.
e
Event arguments.
Renders the client component.
config
Dynamic configuration object.
Updates the client component using the state information.
state
Dynamic state object.
e
Computes the location of the specified screen point into client coordinates.
point
Computes the location of the specified client point into screen coordinates.
point
Forces the control to update the corresponding client widget. When in DesignMode it forces a full redraw of the designer surface for this control and optionally of its children, including the non-client areas such as the caption of forms or panels.
refreshChildren
True to also refresh all the children of this control.
Removes an owned form from this form.
ownedForm
Shows the form to the user.
Throws:
Shows the form with the specified owner to the user.
owner
Throws:
Shows the form as a modal dialog box. When the onclose is specified, the dialog is modal only in the browser.
When using ShowDialog, the dialog instance is not automatically disposed when the dialog is closed because dialogs are reusable. To make sure that memory is released properly, you must dispose the instance in your code or use the typical using pattern. Dialogs that are closed, but not disposed and not referenced by the application will be disposed by the Garbage Collector when it kicks in.
Modal dialogs suspend the code execution on the server side effectively replicating the full modal workflow employed by desktop applications. However, when the optional onclose parameter is specified, the dialog is modal only in the browser and doesn't suspend the server thread. Which is similar to the typical asynchronous modal pattern used in javascript.
Throws:
Shows the form as a modal dialog box with the specified owner. When the onclose is specified, the dialog is modal only in the browser.
owner
When using ShowDialog, the dialog instance is not automatically disposed when the dialog is closed because dialogs are reusable. To make sure that memory is released properly, you must dispose the instance in your code or use the typical using pattern. Dialogs that are closed, but not disposed and not referenced by the application will be disposed by the Garbage Collector when it kicks in.
Modal dialogs suspend the code execution on the server side effectively replicating the full modal workflow employed by desktop applications. However, when the optional onclose parameter is specified, the dialog is modal only in the browser and doesn't suspend the server thread. Which is similar to the typical asynchronous modal pattern used in javascript.
Throws:
Asynchronously shows the form as an awaitable modal dialog box.
When using ShowDialog, the dialog instance is not automatically disposed when the dialog is closed because dialogs are reusable. To make sure that memory is released properly, you must dispose the instance in your code or use the typical using pattern. Dialogs that are closed, but not disposed and not referenced by the application will be disposed by the Garbage Collector when it kicks in.
Asynchronous Modal dialogs don't suspend the code execution on the server side but can be "awaited" in "async" methods effectively replicating the full modal workflow employed by desktop applications in an asynchronous environment.
Throws:
Converts the client size into the window size.
clientSize
UI implementation for the FileDialog class.
UI implementation for the FolderDialog class.
Provides access to the UserData
and Tag
properties associated to the component implementing this interface.
Bindable components implement this interface.
Provides the functionality for a control to act as a parent for other controls.
Controls that support drag & drop operations implement this interface.
All wisej components implement this interface.
All wisej top-level windows implement this interface.
Allows an object to serialize itself.
Handler for the event.
Initializes a new instance of the class with the specified initial settings.
An array of objects to be added to the form.
Handler for the event.
Initializes a new instance of the class with the specified initial settings.
An array of objects to be added to the form.
Initializes a new instance of the class with the specified initial settings.
Handler for the event.
Initializes a new instance of the class with the specified initial settings.
An array of objects to be added to the form.
Handler for the event.
: Returns or sets the button on the form that is clicked when the user presses the ENTER key. (Default: null
)
Assigning the AcceptButton doesn't automatically close the window when the button is pressed. It only assigns the value of the property of the form to the value of the property of the button. To close the form when the is clicked, you have to call the method when the button is pushed.
: Returns whether the form is the currently active top level window or the active mdi child window.
: Returns the currently active form for this application.
: Returns the currently active multiple-document interface (MDI) child window.
: Returns or sets whether the opacity of the form can be adjusted. (Default: True
)
: Sets the appearance key for the theme engine. (Default: null
)
: Automatically closes the form or dialog when the user clicks anywhere on the browser outside of the form. (Default: False
)
: EXPERIMENTAL: Automatically closes the dialog when is assigned to a value different than by code or by a user action, i.e.: click.Since 3.5.6 (Default: False
)
You can change the default value across the application using the property or related switch. The default WinForms behavior is to automatically close the modal dialog.
: EXPERIMENTAL: Default value for the property.Since 3.5.6 (Default: False
)
The default is false. You can set the value by code or using switches: AppContext.SetSwitch("FormAutoCloseModalDialog", true);
: Returns or sets a value that indicates whether the control resizes based on its contents. (Default: False
)
: Indicates the automatic sizing behavior of the control. (Default: GrowOnly
)
: Returns or sets how the control performs validation when the user changes focus to another control. (Default: EnablePreventFocusChange
)
: Returns or sets the button control that is clicked when the user presses the ESC key. (Default: null
)
Assigning the CancelButton doesn't automatically close the window when the button is pressed. It only assigns the value of the property of the form to the value of the property of the button. To close the form when the is clicked, you have to call the method when the button is pushed.
: Returns the client rectangle to use in the designer.
: Returns or sets the size of the client area of the form.
: Returns or sets whether the Close button is displayed in the caption bar of the form. (Default: True
)
: Returns the reason for the form closing. (Default: None
)
: Returns or sets whether a control box is displayed in the caption bar of the form. (Default: True
)
: Returns or sets the dialog result for the form. (Default: None
)
: Enables or disables merging the MdiParent's menu with the active MdiChild form's menu. (Default: False
)
: Returns or sets the border style of the form. (Default: Sizable
)
: Returns whether this form is an and has any Mdi child form. (Default: False
)
: Returns whether this form has any owned form. (Default: False
)
: Returns or sets the background color of the title bar and frame of the window.
: Returns or sets the text color of the title bar of the window.
: Returns or sets the icon (32x32) for the .
: Returns or sets the large icon (128x128) for the .
: Returns or sets the theme name or URL for the large icon to display for the .
: Returns or sets the theme name or URL for the icon to display for the .
: Returns whether the has been closed. (Default: False
)
Modal dialogs are reusable and are not disposed automatically when closed. Use this property to check whether a modal dialog has been closed, and use to check if it has been disposed.
: Returns whether the was created as a modal or modeless dialog using . (Default: False
)
: Returns a value indicating whether the form is a multiple-document interface (MDI) child form. (Default: False
)
: Returns or sets whether the form is a container for multiple-document interface (MDI) child forms. (Default: False
)
: Keeps the form always centered in the browser. (Default: False
)
: Keeps the entire form within the browser view preventing the user from dragging the form, even partially, outside of the view. (Default: False
)
: Returns or sets whether the form is resized while the border is being dragged. (Default: False
)
: Returns or sets whether the Maximize button is displayed in the caption bar of the form. (Default: True
)
: Returns the maximum size the form can be resized to. (Default: {Width=0, Height=0}
)
The values of the height or width within the object are less than zero.
: Returns an array of forms that represent the multiple-document interface (MDI) child forms that are parented to this form.
: Returns the internal MdiClient component. (Default: null
)
: Returns or sets the current multiple-document interface (MDI) parent form of this form. (Default: null
)
The assigned to this property is not marked as an MDI container.
: Provides properties for the object used to display the tabbed MDI interface.
: Returns or sets the that is displayed in the form. (Default: null
)
: Returns the merged menu for the form. (Default: null
)
: Returns or sets whether the Minimize button is displayed in the caption bar of the form. (Default: True
)
: Returns or sets the minimum size the form can be resized to.
The values of the height or width within the object are less than zero.
: Returns whether this form is displayed modally. (Default: False
)
: Returns or sets whether the form can be moved by dragging. (Default: True
)
: Returns or sets the opacity level of the form. (Default: 1
)
: Returns an array of objects that represent all forms that are owned by this form.
: Returns or sets the form that owns this form. (Default: null
)
A top-level window cannot have an owner.
: Returns or sets whether the form is displayed in the taskbar. (Default: True
)
: Returns or sets a value that shows the modal mask on the client when this form is displayed. (Default: False
)
Modal forms - forms opened using - always show the modal mask by default.
: Returns or sets the size of the form.
: Returns or sets the starting position of the form at run time. (Default: DefaultLocation
)
: Returns or sets the title of the window. (Default: ""
)
: Returns the instance of associated with this control.
: Returns or sets whether to display the form as a top-level window. (Default: True
)
A Multiple-document interface (MDI) parent form must be a top-level window.
: Returns or sets whether the form should be displayed as a topmost form. (Default: False
)
: Returns or sets a value that indicates whether form is minimized, maximized, or normal. (Default: Normal
)
The that this form will own.
Fires the event.
A that contains the event data.
Fires the event.
An that contains the event data.
Fires the event.
The that contains the event data.
Fires the event.
A that contains the event data.
Fires the event.
A that contains the event data.
Fires the event.
The that contains the event data.
A that contains the event data.
Raises the event.
A that contains the event data.
Raises the event.
A that contains the event data.
Fires the event.
A that contains the event data.
Fires the event.
A that contains the event data.
Fires the event.
A that contains the event data.
Fires the event.
Fires the event.
The that contains the event data.
Fires the event.
The that contains the event data.
Fires the event.
The that contains the event data.
Fires the event.
The that contains the event data.
Fires the event.
A that contains the event data.
Fires the event.
A that contains the event data.
Fires the event.
A that contains the event data.
A that contains the event data.
Fires the event.
A that contains the event data.
The screen coordinate to convert.
Returns: . A that represents the converted , point , in client coordinates.
The client coordinate to convert.
Returns: . A that represents the converted , point , in screen coordinates.
A representing the form to remove from the list of owned forms for this form.
onclose
Optional async handler for the close event; called when the form/dialog has been closed. It's the equivalent of handling the
Forms are disposed immediately when they are closed and cannot be shown again. The optional onclose parameter is an asynchronous callback handler invoked when the form is closed. It is similar to handling the event.
The form being shown is already visible; or the form being shown is not a top-level window; or the form being shown as a dialog box is already a modal form.
A that is related to this instance. This form is added to the collection of the owner form.
onclose
Optional async handler for the close event; called when the form/dialog has been closed. It's the equivalent of handling the
Forms are disposed immediately when they are closed and cannot be shown again. The optional onclose parameter is an asynchronous callback handler invoked when the form is closed. It is similar to handling the event.
The form being shown is already visible; or The form specified in the owner parameter is the same as the form being shown; or the form being shown is disabled; or the form being shown is not a top-level window; or the form being shown as a dialog box is already a modal form.
onclose
Optional async handler for the close event; called when the form/dialog has been closed. It's the equivalent of handling the
Returns: . One of the values.
The form being shown is already visible; or the form being shown is disabled; or the form being shown is not a top-level window; or the form being shown as a dialog box is already a modal form.
A that is related to this instance. This form is added to the collection of the owner form.
onclose
Optional async handler for the close event; called when the form/dialog has been closed. It's the equivalent of handling the When the onclose event handler is specified, the modal dialog doesn't suspend the execution on the server but it's still shown as a modal dialog on the client.
Returns: . One of the values.
The form specified in the owner parameter is the same as the form being shown.
The form being shown is already visible; or The form specified in the owner parameter is the same as the form being shown; or the form being shown is disabled; or the form being shown is not a top-level window; or the form being shown as a dialog box is already a modal form.
owner
An optional that is related to this instance. This form is added to the collection of the owner form.
Returns: . An awaitable that contains the value returned asynchronous when the user closes the modal dialog.
The form being shown is already visible; or the form being shown is disabled; or the form being shown is not a top-level window; or the form being shown as a dialog box is already a modal form.
Returns: .
Fired when the form is activated in code or by the user.
Fired when the form loses focus and is no longer the active form.
Occurs after the form is closed.
Occurs before the form is closed.
Fired when the Help button is clicked.
Fired before a form is displayed for the first time.
Fired when the value of the property has changed.
Fired when a multiple-document interface (MDI) child form is activated.
Fired when a multiple-document interface (MDI) child form is added to the mdi parent.
Fired when a multiple-document interface (MDI) child form is removed from the mdi parent.
Fired when the value of the property has changed.
Fired whenever the form is first displayed.
Fired when a is clicked.
Fired when the value of the property has changed.
All wisej controls derived from the class must implement this interface.