All pages
Powered by GitBook
1 of 11

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Form

Wisej.Web.Form

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.0.0.0)

  • Control

    • ScrollableControl

Represents a window or dialog box that makes up an application's user interface.

Constructors

Form()

Default constructor.

Form(onClosed)

Initializes a new instance of the class with the specified initial settings.

Name
Type
Description

Form(controls, onClosed)

Initializes a new instance of the class with the specified initial settings.

Name
Type
Description

Form(location, size, controls)

Initializes a new instance of the class with the specified initial settings.

Name
Type
Description

Form(location, size, onClosed)

Initializes a new instance of the class with the specified initial settings.

Name
Type
Description

Form(location, size, controls, onClosed)

Initializes a new instance of the class with the specified initial settings.

Name
Type
Description

Properties

AcceptButton

: 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.

Active

: Returns whether the form is the currently active top level window or the active mdi child window.

ActiveForm

: Returns the currently active form for this application.

ActiveMdiChild

: Returns the currently active multiple-document interface (MDI) child window.

AllowTransparency

: Returns or sets whether the opacity of the form can be adjusted. (Default: True)

AppearanceKey

: Sets the appearance key for the theme engine. (Default: null)

AutoClose

: Automatically closes the form or dialog when the user clicks anywhere on the browser outside of the form. (Default: False)

AutoCloseModalDialog

: 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.

AutoCloseModalDialogDefault

: 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);

AutoSize

: Returns or sets a value that indicates whether the control resizes based on its contents. (Default: False)

AutoSizeMode

: Indicates the automatic sizing behavior of the control. (Default: GrowOnly)

AutoValidate

: Returns or sets how the control performs validation when the user changes focus to another control. (Default: EnablePreventFocusChange)

CancelButton

: 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.

ClientArea

: Returns the client rectangle to use in the designer.

ClientSize

: Returns or sets the size of the client area of the form.

CloseBox

: Returns or sets whether the Close button is displayed in the caption bar of the form. (Default: True)

CloseReason

: Returns the reason for the form closing. (Default: None)

ControlBox

: Returns or sets whether a control box is displayed in the caption bar of the form. (Default: True)

DialogResult

: Returns or sets the dialog result for the form. (Default: None)

DisableMergedMenu

: Enables or disables merging the MdiParent's menu with the active MdiChild form's menu. (Default: False)

FormBorderStyle

: Returns or sets the border style of the form. (Default: Sizable)

HasMdiChildren

: Returns whether this form is an and has any Mdi child form. (Default: False)

HasOwnedForms

: Returns whether this form has any owned form. (Default: False)

HeaderBackColor

: Returns or sets the background color of the title bar and frame of the window.

HeaderForeColor

: Returns or sets the text color of the title bar of the window.

Icon

: Returns or sets the icon (32x32) for the .

The default value is null.

IconLarge

: Returns or sets the large icon (128x128) for the .

The deafult value is null.

IconLargeSource

: Returns or sets the theme name or URL for the large icon to display for the .

The deafult value is null.

IconSource

: Returns or sets the theme name or URL for the icon to display for the .

The default value is null.

IsClosed

: 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.

IsDialog

: Returns whether the was created as a modal or modeless dialog using . (Default: False)

IsMdiChild

: Returns a value indicating whether the form is a multiple-document interface (MDI) child form. (Default: False)

IsMdiContainer

: Returns or sets whether the form is a container for multiple-document interface (MDI) child forms. (Default: False)

KeepCentered

: Keeps the form always centered in the browser. (Default: False)

KeepOnScreen

: Keeps the entire form within the browser view preventing the user from dragging the form, even partially, outside of the view. (Default: False)

LiveResize

: Returns or sets whether the form is resized while the border is being dragged. (Default: False)

MaximizeBox

: Returns or sets whether the Maximize button is displayed in the caption bar of the form. (Default: True)

MaximumSize

: Returns the maximum size the form can be resized to. (Default: {Width=0, Height=0})

Throws:

  • The values of the height or width within the object are less than zero.

MdiChildren

: Returns an array of forms that represent the multiple-document interface (MDI) child forms that are parented to this form.

Default value is Form[0] (an empty array of Forms)

MdiClient

: Returns the internal MdiClient component. (Default: null)

MdiParent

: Returns or sets the current multiple-document interface (MDI) parent form of this form. (Default: null)

Throws:

  • The assigned to this property is not marked as an MDI container.

MdiTabProperties

: Provides properties for the object used to display the tabbed MDI interface.

Menu

: Returns or sets the that is displayed in the form. (Default: null)

MergedMenu

: Returns the merged menu for the form. (Default: null)

MinimizeBox

: Returns or sets whether the Minimize button is displayed in the caption bar of the form. (Default: True)

MinimumSize

: Returns or sets the minimum size the form can be resized to.

Default value is a Size with Width = 0, Height = 0Throws:

  • The values of the height or width within the object are less than zero.

Modal

: Returns whether this form is displayed modally. (Default: False)

Movable

: Returns or sets whether the form can be moved by dragging. (Default: True)

Opacity

: Returns or sets the opacity level of the form. (Default: 1)

OwnedForms

: Returns an array of objects that represent all forms that are owned by this form.

Default value is Form[0] (an empty array of Forms)

Owner

: Returns or sets the form that owns this form. (Default: null)

Throws:

  • A top-level window cannot have an owner.

ShowInTaskbar

: Returns or sets whether the form is displayed in the taskbar. (Default: True)

ShowModalMask

: 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.

Size

: Returns or sets the size of the form.

StartPosition

: Returns or sets the starting position of the form at run time. (Default: DefaultLocation)

Text

: Returns or sets the title of the window. (Default: "")

Tools

: Returns the instance of associated with this control.

TopLevel

: Returns or sets whether to display the form as a top-level window. (Default: True)

Throws:

  • A Multiple-document interface (MDI) parent form must be a top-level window.

TopMost

: Returns or sets whether the form should be displayed as a topmost form. (Default: False)

WindowState

: Returns or sets a value that indicates whether form is minimized, maximized, or normal. (Default: Normal)

Methods

Activate()

Activates the form and gives it focus.

AddOwnedForm(ownedForm)

Adds an owned form to this form.

Parameter
Type
Description

CenterToScreen()

Centers the window on the current browser size.

Close()

Closes the form.

Dispose(disposing)

Deactivate and remove the disposed window from the open form collections.

Parameter
Type
Description

OnActivated(e)

Fires the event.

Parameter
Type
Description

OnAddReferences(items)

Adds references components to the list. Referenced components can be added individually or as a reference to a collection.

Parameter
Type
Description

OnBindingContextChanged(e)

Fires the event.

Parameter
Type
Description

OnClosed(e)

Fires the event.

Parameter
Type
Description

OnClosing(e)

Fires the event.

Parameter
Type
Description

OnControlAdded(e)

Fires the event.

Parameter
Type
Description

OnCreateControl()

Raised when the control is created.

OnDeactivate(e)

Fires the event.

Parameter
Type
Description

OnEnabledChanged(e)

Parameter
Type
Description

OnFormClosed(e)

Raises the event.

Parameter
Type
Description

OnFormClosing(e)

Raises the event.

Parameter
Type
Description

OnHelpButtonClicked(e)

Fires the event.

Parameter
Type
Description

OnLayout(e)

Fires the event.

Parameter
Type
Description

OnLoad(e)

Fires the event.

Parameter
Type
Description

OnLocationChanged(e)

Fires the event.

Parameter
Type
Description

OnMaximumSizeChanged(e)

Fires the event.

Parameter
Type
Description

OnMdiChildActivate(e)

Fires the event.

Parameter
Type
Description

OnMdiChildAdded(e)

Fires the event.

Parameter
Type
Description

OnMdiChildRemoved(e)

Fires the event.

Parameter
Type
Description

OnMinimumSizeChanged(e)

Fires the event.

Parameter
Type
Description

OnMouseClick(e)

Fires the event.

Parameter
Type
Description

OnShown(e)

Fires the event.

Parameter
Type
Description

OnToolClick(e)

Fires the ToolClick event.

Parameter
Type
Description

OnWebEvent(e)

Processes the event from the client.

Parameter
Type
Description

OnWebRender(config)

Renders the client component.

Parameter
Type
Description

OnWebUpdate(state)

Updates the client component using the state information.

Parameter
Type
Description

OnWindowStateChanged(e)

Fires the event.

Parameter
Type
Description

PointToClient(point)

Computes the location of the specified screen point into client coordinates.

Parameter
Type
Description

Returns: . A that represents the converted , point , in client coordinates.

PointToScreen(point)

Computes the location of the specified client point into screen coordinates.

Parameter
Type
Description

Returns: . A that represents the converted , point , in screen coordinates.

Refresh(refreshChildren)

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.

Parameter
Type
Description

RemoveOwnedForm(ownedForm)

Removes an owned form from this form.

Parameter
Type
Description

Show(onclose)

Shows the form to the user.

Parameter
Type
Description

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.

Throws:

  • 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.

Show(owner, onclose)

Shows the form with the specified owner to the user.

Parameter
Type
Description

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.

Throws:

  • 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.

ShowDialog(onclose)

Shows the form as a modal dialog box. When the onclose is specified, the dialog is modal only in the browser.

Parameter
Type
Description

Returns: . One of the values.

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:

  • 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.

ShowDialog(owner, onclose)

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.

Parameter
Type
Description

Returns: . One of the values.

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:

  • 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.

ShowDialogAsync(owner)

Asynchronously shows the form as an awaitable modal dialog box.

Parameter
Type
Description

Returns: . An awaitable that contains the value returned asynchronous when the user closes the modal dialog.

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:

  • 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.

SizeFromClientSize(clientSize)

Converts the client size into the window size.

Parameter
Type
Description

Returns: .

Events

Activated

Fired when the form is activated in code or by the user.

Deactivate

Fired when the form loses focus and is no longer the active form.

FormClosed

Occurs after the form is closed.

FormClosing

Occurs before the form is closed.

HelpButtonClicked

Fired when the Help button is clicked.

Load

Fired before a form is displayed for the first time.

MaximumSizeChanged

Fired when the value of the property has changed.

MdiChildActivate

Fired when a multiple-document interface (MDI) child form is activated.

MdiChildAdded

Fired when a multiple-document interface (MDI) child form is added to the mdi parent.

MdiChildRemoved

Fired when a multiple-document interface (MDI) child form is removed from the mdi parent.

MinimumSizeChanged

Fired when the value of the property has changed.

Shown

Fired whenever the form is first displayed.

ToolClick

Fired when a is clicked.

WindowStateChanged

Fired when the value of the property has changed.

Inherited By

Name
Description

Implements

Name
Description

All wisej top-level windows implement this interface.

Allows an object to serialize itself.

onClosed

Action<Object, EventArgs>

Handler for the Closed event.

controls

Control[]

An array of Control objects to be added to the form.

onClosed

Action<Object, EventArgs>

Handler for the Closed event.

location

Point

The location of the form on the screen.

size

Size

The size of the form.

controls

Control[]

An array of Control objects to be added to the form.

location

Point

The location of the form on the screen.

size

Size

The size of the form.

onClosed

Action<Object, EventArgs>

Handler for the Closed event.

location

Point

The location of the form on the screen.

size

Size

The size of the form.

controls

Control[]

An array of Control objects to be added to the form.

onClosed

Action<Object, EventArgs>

ownedForm

Form

The Form that this form will own.

disposing

Boolean

true when this method is called by the application rather than a finalizer.

e

EventArgs

A EventArgs that contains the event data.

items

IList

Container for the referenced components or collections.

e

EventArgs

An EventArgs that contains the event data.

e

EventArgs

The EventArgs that contains the event data.

e

CancelEventArgs

A CancelEventArgs that contains the event data.

e

ControlEventArgs

A ControlEventArgs that contains the event data.

e

EventArgs

The EventArgs that contains the event data.

e

EventArgs

A EventArgs that contains the event data.

e

FormClosedEventArgs

A FormClosedEventArgs that contains the event data.

e

FormClosingEventArgs

A FormClosingEventArgs that contains the event data.

e

EventArgs

A EventArgs that contains the event data.

e

LayoutEventArgs

A LayoutEventArgs that contains the event data.

e

EventArgs

A EventArgs that contains the event data.

e

EventArgs

e

EventArgs

The EventArgs that contains the event data.

e

EventArgs

The EventArgs that contains the event data.

e

ControlEventArgs

The EventArgs that contains the event data.

e

ControlEventArgs

The EventArgs that contains the event data.

e

EventArgs

A EventArgs that contains the event data.

e

MouseEventArgs

A MouseEventArgs that contains the event data.

e

EventArgs

A EventArgs that contains the event data.

e

ToolClickEventArgs

A ToolClickEventArgs that contains the event data.

e

WisejEventArgs

Event arguments.

config

Object

Dynamic configuration object.

state

Object

Dynamic state object.

e

EventArgs

A EventArgs that contains the event data.

point

Point

The screen coordinate Point to convert.

point

Point

The client coordinate Point to convert.

refreshChildren

Boolean

True to also refresh all the children of this control.

ownedForm

Form

A Form representing the form to remove from the list of owned forms for this form.

onclose

Action<Form, DialogResult>

Optional async handler for the close event; called when the form/dialog has been closed. It's the equivalent of handling the event.

owner

Form

A Form that is related to this instance. This form is added to the OwnedForms collection of the owner form.

onclose

Action<Form, DialogResult>

Optional async handler for the close event; called when the form/dialog has been closed. It's the equivalent of handling the event.

onclose

Action<Form, DialogResult>

Optional async handler for the close event; called when the form/dialog has been closed. It's the equivalent of handling the event.

owner

Form

A Form that is related to this instance. This form is added to the OwnedForms collection of the owner form.

onclose

Action<Form, DialogResult>

Optional async handler for the close event; called when the form/dialog has been closed. It's the equivalent of handling the event. 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.

owner

Form

An optional Form that is related to this instance. This form is added to the OwnedForms collection of the owner form.

clientSize

Size

FileDialogUI

UI implementation for the FileDialog class.

FolderBrowserDialogUI

UI implementation for the FolderDialog class.

IUserData

Provides access to the UserData and Tag properties associated to the component implementing this interface.

IBindableComponent

Bindable components implement this interface.

IContainerControl

Provides the functionality for a control to act as a parent for other controls.

IDropTarget

Controls that support drag & drop operations implement this interface.

IWisejComponent

All wisej components implement this interface.

IWisejControl

All wisej controls derived from the Control class must implement this interface.

ContainerControl
Form
Public Class Form
    Inherits ContainerControl
    Implements IWisejWindow
Form
Form
Form
Form
Form
IButtonControl
DialogResult
DialogResult
AcceptButton
Close
Boolean
Form
Form
Boolean
String
Boolean
Boolean
Modal
DialogResult
None
AcceptButton
AutoCloseModalDialogDefault
AppContext
Boolean
AutoCloseModalDialog
AppContext
Boolean
AutoSizeMode
AutoValidate
IButtonControl
DialogResult
DialogResult
CancelButton
Close
Rectangle
Size
Boolean
CloseReason
Boolean
DialogResult
Boolean
FormBorderStyle
Boolean
IsMdiContainer
Boolean
Color
Color
Image
Form
Image
Form
String
Form
String
Form
Boolean
Form
IsDisposed
Boolean
Form
ShowDialog
Boolean
Boolean
Boolean
Boolean
Boolean
Boolean
Size
ArgumentOutOfRangeException
Size
Form[]
MdiClient
Form
Exception
Form
MdiTabProperties
TabControl
MainMenu
MainMenu
MainMenu
Boolean
Size
ArgumentOutOfRangeException
Size
Boolean
Boolean
Double
Form[]
Form
Form
Exception
Boolean
Desktop
Boolean
ShowDialog
Size
FormStartPosition
String
Form
ComponentToolCollection
ComponentToolCollection
Boolean
Exception
Boolean
FormWindowState
Activated
BindingContextChanged
Closed
Closing
ControlAdded
Deactivate
FormClosed
FormClosing
HelpButtonClicked
Layout
Load
LocationChanged
MaximumSizeChanged
MdiChildActivate
MdiChildAdded
MdiChildRemoved
MinimumSizeChanged
MouseClick
Shown
WindowStateChanged
Point
Point
Point
Point
Point
Point
FormClosed
InvalidOperationException
FormClosed
InvalidOperationException
DialogResult
DialogResult
InvalidOperationException
DialogResult
DialogResult
ArgumentException
InvalidOperationException
Task<DialogResult>
Task
DialogResult
InvalidOperationException
Size
EventHandler
EventHandler
FormClosedEventHandler
FormClosingEventHandler
EventHandler
EventHandler
EventHandler
MaximumSize
EventHandler
ControlEventHandler
ControlEventHandler
EventHandler
MinimumSize
EventHandler
ToolClickEventHandler
ComponentTool
EventHandler
WindowStateChanged
public class Form : ContainerControl, IWisejWindow

Handler for the event.

FormBorderStyle

Wisej.Web.FormBorderStyle

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.0.0.0)

Specifies the border styles for a form.

Fields

FormClosedEventArgs

Wisej.Web.FormClosedEventArgs

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.0.0.0)

Provides data for the event.

Constructors


form.Show((sender, result) => {
  
  // this code is executed when the form is closed.
  // sender is a reference to the form being closed.
  // result contains the value of form.DialogResult.
});

form.Show((sender, result) => {
  
  // this code is executed when the form is closed.
  // sender is a reference to the form being closed.
  // result contains the value of form.DialogResult.
});

using (var dialog and new MyDialog())
{
  dialog.ShowDialog();
}

dialog.ShowDialog((sender, result) => {
  
  // this code is executed when the dialog is closed.
  // sender is a reference to the dialog being closed.
  // result contains the value of dialog.DialogResult.
  
  // you may dispose it here:
  sender.Dispose();
});

// this code is executed immediately, unlike the real modal workflow.

using (var dialog and new MyDialog())
{
  dialog.ShowDialog();
}

dialog.ShowDialog((sender, result) => {
  
  // this code is executed when the dialog is closed.
  // sender is a reference to the dialog being closed.
  // result contains the value of dialog.DialogResult.
  
  // you may dispose it here:
  sender.Dispose();
});

// this code is executed immediately, unlike the real modal workflow.

using (var dialog and new MyDialog())
{
    var result = await dialog.ShowDialog();
}

private async void button_Click(object sender, EventArgs e)
{
    var result = await dialog.ShowDialog();

    // this code is executed when the dialog is closed.
    // result contains the value of dialog.DialogResult.

    // you may dispose the dialog here:
    dialog.Dispose();
}
Closed
IWisejWindow
IWisejSerializable
Name
Description

Fixed

A fixed, not resizable border.

FixedToolWindow

A tool window border that is not resizable.

None

No border.

Sizable

A resizable border.

SizableToolWindow

A resizable tool window border.

Used By

Name
Description

Returns or sets the border style of the form.

Public Enum FormBorderStyle As [Enum]
public enum FormBorderStyle : Enum
FormClosedEventArgs(closeReason)

Initializes a new instance of the FormClosedEventArgs class.

Name
Type
Description

closeReason

A value that represents the reason why the form was closed.

Properties

CloseReason

CloseReason: Returns a value that indicates why the form was closed.

Used By

Name
Description

Represents the method that handles a event.

FormClosed
Public Class FormClosedEventArgs
    Inherits EventArgs
public class FormClosedEventArgs : EventArgs

FormClosedEventHandler

Wisej.Web.FormClosedEventHandler

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.0.0.0)

Represents the method that handles a FormClosed event.

public delegate void FormClosedEventHandler(Object sender, FormClosedEventArgs e)
Public Delegate Sub FormClosedEventHandler(ByVal sender As [Object], ByVal e As FormClosedEventArgs)

Parameters

Name
Type
Description

Fired By

Name
Description

CloseReason

Wisej.Web.CloseReason

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.0.0.0)

Specifies the reason that a form was closed.

public enum CloseReason : Enum
Public Enum CloseReason As [Enum]

Fields

Name
Description

Used By

Name
Description

sender

Object

The source of the event.

e

FormClosedEventArgs

A FormClosedEventArgs that contains the event data.

Form.FormClosed

Occurs after the form is closed.

ApplicationExit

The application is terminating.

FormOwnerClosing

The owner control form is closing.

MdiFormClosing

The parent form of this multiple document interface (MDI) form is closing.

None

The cause of the closure was not defined or could not be determined.

UserClosing

The user is closing the form through the user interface (UI).

Form.CloseReason

Returns the reason for the form closing.

FormClosedEventArgs.CloseReason

Returns a value that indicates why the form was closed.

FormClosingEventArgs.CloseReason

Returns a value that indicates why the form is being closed.

IWisejWindow.Close

Closes the window.

Form.FormBorderStyle
CloseReason
CloseReason
FormClosedEventHandler
FormClosed

FormClosingEventArgs

Wisej.Web.FormClosingEventArgs

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.0.0.0)

Provides data for the FormClosing event.

public class FormClosingEventArgs : CancelEventArgs
Public Class FormClosingEventArgs
    Inherits CancelEventArgs

Constructors

FormClosingEventArgs(closeReason, cancel)

Initializes a new instance of the class.

Name
Type
Description

Properties

CloseReason

: Returns a value that indicates why the form is being closed.

Used By

Name
Description

FormStartPosition

Wisej.Web.FormStartPosition

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.0.0.0)

Specifies the initial position of a form.

public enum FormStartPosition : Enum
Public Enum FormStartPosition As [Enum]

Fields

Name
Description

Used By

Name
Description

MdiTabProperties

Wisej.Web.MdiTabProperties

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.0.0.0)

Encapsulates properties related to the tabbed MDI interface.

Constructors

FormWindowState

Wisej.Web.FormWindowState

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.0.0.0)

Specifies how a form window is displayed.

Fields

CenterParent

The form is centered within the bounds of its parent form.

CenterScreen

The form is centered on the current display, and has the dimensions specified in the form's size.

DefaultLocation

The form is positioned at the default location and has the dimensions specified in the form's size.

Manual

The position of the form is determined by the Location property.

Form.StartPosition

Returns or sets the starting position of the form at run time.

FormExtensions.StartPosition

Sets the start position for the specified Form control, determining the initial position of the form when it is displayed.

closeReason

CloseReason

A CloseReason value that represents the reason why the form is being closed.

cancel

Boolean

true to cancel the event; otherwise, false.

FormClosingEventHandler

Represents the method that handles a FormClosing event.

FormClosingEventArgs
CloseReason
MdiTabProperties(owner)

Initializes a new instance of the MdiTabProperties class.

Name
Type
Description

owner

The whose properties this object describes.

Properties

Alignment

TabAlignment: Returns or sets the area of the control (for example, along the top) where the tabs are aligned. (Default: Top)

AllowUserToMoveTabs

Boolean: Returns or sets whether the user can change the position of a tab button by dragging it. (Default: False)

BackColor

Color: Returns or sets the background color for the control.

BorderStyle

BorderStyle: Indicates the border style for the control. (Default: Solid)

Orientation

Orientation: Returns or sets a value indicating the horizontal or vertical orientation of the TabControl tab pages.

ShowMdiChildMenu

Boolean: Returns or sets whether the menu of the MdiChild form is shown on the tab button. (Default: False)

ShowThumbnails

Boolean: Returns or sets whether the thumbnail page is visible. (Default: True)

SizeMode

TabSizeMode: Returns or sets whether the tab buttons should fill the control's size, or placed in the center, or aligned to the left. (Default: Normal)

Public Class MdiTabProperties
    Inherits ICloneable
public class MdiTabProperties : ICloneable
Name
Description

Maximized

A maximized window.

Minimized

A minimized window.

Normal

A default sized window.

Used By

Name
Description

Returns or sets the initial of the common dialog.

Returns or sets a value that indicates whether form is minimized, maximized, or normal.

Sets the window state for the specified control.

Public Enum FormWindowState As [Enum]
public enum FormWindowState : Enum

MdiClient

Wisej.Web.MdiClient

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.0.0.0)

  • Control

    • MdiClient

Represents the container for multiple-document interface (MDI) child forms.

Constructors

MdiClient(owner)

Initializes a new instance of .

Name
Type
Description

Properties

ActiveMdiChild

: Returns the currently active multiple-document interface (MDI) child window.

MdiChildren

: Returns the child multiple-document interface (MDI) forms of the control.

TabControl

: Returns the internal TabControl.

Methods

OnLeave(e)

Parameter
Type
Description

OnWebRender(config)

Renders the client component.

Parameter
Type
Description

Implements

Name
Description

FormClosingEventHandler

Wisej.Web.FormClosingEventHandler

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.0.0.0)

Represents the method that handles a FormClosing event.

public delegate void FormClosingEventHandler(Object sender, FormClosingEventArgs e)
Public Delegate Sub FormClosingEventHandler(ByVal sender As [Object], ByVal e As FormClosingEventArgs)

Parameters

Name
Type
Description

Fired By

Name
Description

sender

Object

The source of the event.

e

FormClosingEventArgs

A FormClosingEventArgs that contains the event data.

Form.FormClosing

Occurs before the form is closed.

CommonDialog.WindowState
WindowState
Form.WindowState
FormExtensions.WindowState
Form
Form
Form

owner

Form

The MdiParent form using this container to host its children.

e

EventArgs

config

Object

Dynamic configuration object.

IUserData

Provides access to the UserData and Tag properties associated to the component implementing this interface.

IBindableComponent

Bindable components implement this interface.

IDropTarget

Controls that support drag & drop operations implement this interface.

IWisejComponent

All wisej components implement this interface.

IWisejControl

All wisej controls derived from the Control class must implement this interface.

IWisejSerializable

Allows an object to serialize itself.

Public Class MdiClient
    Inherits Control
MdiClient
Form
Form[]
MdiClient
TabControl
public class MdiClient : Control