LogoLogo
HomeNewsSupportVideos
v2.5
v2.5
  • Welcome
  • What's New
  • Releases
  • Concepts
  • Themes
  • Extensions
  • Wisej.Web
    • General
      • Application
        • Application.FormCollection
        • Application.PageCollection
        • HashChangedEventArgs
        • HashChangedEventHandler
        • LicenseErrorEventArgs
        • LicenseErrorEventHandler
        • ResponsiveProfileChangedEventArgs
        • ResponsiveProfileChangedEventHandler
      • Clipboard
      • Component
      • Control
        • Control.ControlCollection
        • ControlEventArgs
        • ControlEventHandler
        • DragEventArgs
        • DragEventHandler
        • HelpEventArgs
        • HelpEventHandler
        • KeyEventArgs
        • KeyEventHandler
        • KeyPressEventArgs
        • KeyPressEventHandler
        • LayoutEventArgs
        • LayoutEventHandler
        • MouseEventArgs
        • MouseEventHandler
        • PaintEventArgs
        • PaintEventHandler
        • PinchEventArgs
        • PinchEventHandler
        • PreviewKeyDownEventArgs
        • PreviewKeyDownEventHandler
        • QueryContinueDragEventArgs
        • QueryContinueDragEventHandler
        • ResponsiveProfileChangedEventArgs
        • ResponsiveProfileChangedEventHandler
        • RotateEventArgs
        • RotateEventHandler
        • SwipeEventArgs
        • SwipeEventHandler
        • TouchEventArgs
        • TouchEventHandler
        • TrackEventArgs
        • TrackEventHandler
        • WidgetEventArgs
        • WidgetEventHandler
      • Cursor
      • Cursors
      • DataObject
      • Padding
      • Screen
    • Buttons
      • Button
        • MenuButtonItemClickedEventArgs
        • MenuButtonItemClickedEventHandler
      • ButtonBase
      • CheckBox
      • RadioButton
      • SplitButton
    • Common Dialogs
      • ColorDialog
      • CommonDialog
      • FileDialog
      • FileDialogLoadPathEventArgs
      • FileDialogLoadPathEventHandler
      • FileDialogRootCollection
      • FileDialogUI
      • FolderBrowserDialog
      • FolderBrowserDialogUI
      • OpenFileDialog
      • SaveFileDialog
    • Containers
      • Accordion
        • AccordionAction
        • AccordionCancelEventArgs
        • AccordionCancelEventHandler
        • AccordionEventArgs
        • AccordionEventHandler
        • AccordionPanel
      • ContainerControl
        • AcceleratorEventArgs
        • AcceleratorEventHandler
      • DataRepeater
        • DataRepeaterAddRemoveItemsCancelEventArgs
        • DataRepeaterAddRemoveItemsCancelEventHandler
        • DataRepeaterAddRemoveItemsEventArgs
        • DataRepeaterAddRemoveItemsEventHandler
        • DataRepeaterDataErrorEventArgs
        • DataRepeaterDataErrorEventHandler
        • DataRepeaterItem
        • DataRepeaterItemCloneEventHandler
        • DataRepeaterItemEventArgs
        • DataRepeaterItemEventHandler
        • DataRepeaterItemValueEventArgs
        • DataRepeaterItemValueEventHandler
        • DataRepeaterLayoutStyles
      • Desktop
        • DesktopTaskBarItem
        • DesktopTaskBarItemClickEventArgs
        • DesktopTaskBarItemClickEventHandler
        • DesktopTaskBarItemCollection
        • DesktopTaskBarItemControl
        • DesktopTaskBarItemDateTime
      • FlexLayoutPanel
        • FlexLayoutStyle
      • FlowLayoutPanel
        • FlowDirection
      • Form
        • CloseReason
        • FormBorderStyle
        • FormClosedEventArgs
        • FormClosedEventHandler
        • FormClosingEventArgs
        • FormClosingEventHandler
        • FormStartPosition
        • FormWindowState
        • MdiClient
        • MdiTabProperties
      • GroupBox
      • Page
      • Panel
      • ScrollableControl
        • ScrollEventArgs
        • ScrollEventHandler
      • SlideBar
      • SplitContainer
        • FixedPanel
        • SplitterCancelEventArgs
        • SplitterCancelEventHandler
        • SplitterEventArgs
        • SplitterEventHandler
        • SplitterPanel
      • StatusBar
        • StatusBarControl
        • StatusBarPanel
        • StatusBarPanelAutoSize
        • StatusBarPanelBorderStyle
        • StatusBarPanelClickEventArgs
        • StatusBarPanelClickEventHandler
      • TabControl
        • TabAlignment
        • TabControlAction
        • TabControlCancelEventArgs
        • TabControlCancelEventHandler
        • TabControlEventArgs
        • TabControlEventHandler
        • TabPage
        • TabSizeMode
      • TableLayoutPanel
        • ColumnStyle
        • RowStyle
        • TableLayoutColumnStyleCollection
        • TableLayoutPanelGrowStyle
        • TableLayoutRowStyleCollection
        • TableLayoutSettings
        • TableLayoutStyle
        • TableLayoutStyleCollection
      • ToolBar
        • ToolBar.ToolBarButtonCollection
        • ToolBarButton
        • ToolBarButtonClickEventArgs
        • ToolBarButtonClickEventHandler
        • ToolBarButtonSizeMode
        • ToolBarButtonStyle
        • ToolBarTextAlign
      • UserControl
      • UserPopup
    • Content
      • AspNetPanel
      • Canvas
      • HtmlPanel
        • HtmlPanelElementClickArgs
        • HtmlPanelElementClickHandler
      • IFramePanel
      • ImageList
        • ImageList.ImageCollection
      • Label
      • Line
      • LinkLabel
        • LinkArea
        • LinkLabelLinkClickedEventArgs
        • LinkLabelLinkClickedEventHandler
      • PdfViewer
      • PictureBox
      • ProgressBar
      • ScrollBar
        • HScrollBar
        • HScrollProperties
        • ScrollEventArgs
        • ScrollEventHandler
        • ScrollProperties
        • VScrollBar
        • VScrollProperties
      • Shape
      • Spacer
      • Upload
        • CaptureMode
        • UploadedEventArgs
        • UploadedEventHandler
        • UploadErrorEventArgs
        • UploadErrorEventHandler
        • UploadErrorType
        • UploadingEventArgs
        • UploadingEventHandler
        • UploadProgressEventArgs
        • UploadProgressEventHandler
      • WebBrowser
        • WebBrowserDocumentCompletedEventArgs
        • WebBrowserDocumentCompletedEventHandler
      • Widget
        • WebRequestEventArgs
        • WebRequestHandler
    • Data Binding
      • Binding
      • BindingCompleteContext
      • BindingCompleteEventArgs
      • BindingCompleteEventHandler
      • BindingCompleteState
      • BindingContext
      • BindingManagerBase
      • BindingManagerDataErrorEventArgs
      • BindingManagerDataErrorEventHandler
      • BindingMemberInfo
      • BindingNavigator
      • BindingsCollection
      • BindingSource
      • ControlBindingsCollection
      • ControlUpdateMode
      • ConvertEventArgs
      • ConvertEventHandler
      • CurrencyManager
      • DataSourceUpdateMode
      • IBindableComponent
      • ICurrencyManagerProvider
      • ItemChangedEventArgs
      • ItemChangedEventHandler
      • ListBindingConverter
      • ListBindingHelper
      • PropertyManager
    • Editors
      • CharacterCasing
      • ComponentTool
      • ComponentToolCollection
      • DateTimePicker
      • DomainUpDown
      • InputType
      • LabelWrapper
      • MaskedTextBox
      • MonthCalendar
        • DateRangeEventArgs
        • DateRangeEventHandler
        • SelectionRange
      • NumericUpDown
      • TagTextBox
        • TagTextBoxEventArgs
        • TagTextBoxEventHandler
        • TagTextBoxMousEventArgs
        • TagTextBoxMousEventHandler
        • TagTextBoxRenderEventArgs
        • TagTextBoxRenderEventHandler
      • TextBox
      • TextBoxBase
      • TextBoxMode
      • TextBoxType
      • TimeUpDown
        • TimeUpDownFormat
      • TrackBar
      • UpDownBase
    • Enumerations
      • AccessibleRole
      • AnchorStyles
      • Appearance
      • AutoComplete
      • AutoCompleteMode
      • AutoScaleMode
      • AutoSizeMode
      • AutoValidate
      • BorderStyle
      • BoundsSpecified
      • CheckState
      • ColorDepth
      • ComboBoxStyle
      • ControlStyles
      • DataFormats
      • DataFormats.Format
      • DateTimePickerFormat
      • Day
      • DialogResult
      • Display
      • DockStyle
      • DragAction
      • DragDropEffects
      • GetChildAtPointSkip
      • HeaderPosition
      • HorizontalAlignment
      • ImageLayout
      • ImagePosition
      • ImeMode
      • Keys
      • LabelPosition
      • LeftRightAlignment
      • LineStyle
      • LinkBehavior
      • MaskFormat
      • MouseButtons
      • ObjectFit
      • Orientation
      • PanelAutoShowMode
      • PictureBoxSizeMode
      • Placement
      • PlacementMode
      • Position
      • RightToLeft
      • ScrollBars
      • ScrollEventType
      • ScrollOrientation
      • SelectionMode
      • Shortcut
      • SizeType
      • SortOrder
      • TabOrderManagerDirection
      • TextDataFormat
      • TextImageRelation
      • TickStyle
      • ValidationConstraints
      • VerticalAlignment
    • Extenders
      • Animation
        • AnimationEventArgs
        • AnimationEventHandler
      • ErrorAnimationType
      • ErrorBlinkStyle
      • ErrorIconAlignment
      • ErrorProvider
      • HelpTip
      • JavaScript
      • Rotation
      • StyleSheet
      • TabOrderManager
      • ToolTip
      • ToolTipIcon
    • Interfaces
      • IButtonControl
      • IContainerControl
      • IDataObject
    • Lists & Grids
      • CheckedListBox
        • ItemCheckEventArgs
        • ItemCheckEventHandler
      • ComboBox
      • DataGridView
        • BaseCollection
        • DataGridView.HitTestInfo
        • DataGridView.HitTestType
        • DataGridViewAutoSizeColumnMode
        • DataGridViewAutoSizeColumnsMode
        • DataGridViewAutoSizeRowMode
        • DataGridViewAutoSizeRowsMode
        • DataGridViewBand
        • DataGridViewBindingCompleteEventArgs
        • DataGridViewBindingCompleteEventHandler
        • DataGridViewButtonCell
        • DataGridViewButtonColumn
        • DataGridViewCell
        • DataGridViewCellBorderStyle
        • DataGridViewCellCancelEventArgs
        • DataGridViewCellCancelEventHandler
        • DataGridViewCellCollection
        • DataGridViewCellContextMenuNeededEventArgs
        • DataGridViewCellContextMenuNeededEventHandler
        • DataGridViewCellErrorTextNeededEventArgs
        • DataGridViewCellErrorTextNeededEventHandler
        • DataGridViewCellEventArgs
        • DataGridViewCellEventHandler
        • DataGridViewCellFormattingEventArgs
        • DataGridViewCellFormattingEventHandler
        • DataGridViewCellMouseEventArgs
        • DataGridViewCellMouseEventHandler
        • DataGridViewCellPaintEventArgs
        • DataGridViewCellPaintEventHandler
        • DataGridViewCellParsingEventArgs
        • DataGridViewCellParsingEventHandler
        • DataGridViewCellStateChangedEventArgs
        • DataGridViewCellStateChangedEventHandler
        • DataGridViewCellStyle
        • DataGridViewCellStyleContentChangedEventArgs
        • DataGridViewCellStyleContentChangedEventHandler
        • DataGridViewCellStyleScopes
        • DataGridViewCellToolTipTextNeededEventArgs
        • DataGridViewCellToolTipTextNeededEventHandler
        • DataGridViewCellValidatingEventArgs
        • DataGridViewCellValidatingEventHandler
        • DataGridViewCellValueEventArgs
        • DataGridViewCellValueEventHandler
        • DataGridViewCheckBoxCell
        • DataGridViewCheckBoxColumn
        • DataGridViewChildRowCollection
        • DataGridViewClipboardCopyMode
        • DataGridViewCollectionChangeEventArgs
        • DataGridViewColumn
        • DataGridViewColumnCollection
        • DataGridViewColumnEventArgs
        • DataGridViewColumnEventHandler
        • DataGridViewColumnHeaderCell
        • DataGridViewColumnHeadersHeightSizeMode
        • DataGridViewColumnSortMode
        • DataGridViewColumnsSortMode
        • DataGridViewColumnStateChangedEventArgs
        • DataGridViewColumnStateChangedEventHandler
        • DataGridViewComboBoxCell
        • DataGridViewComboBoxColumn
        • DataGridViewComboBoxEditingControl
        • DataGridViewContentAlignment
        • DataGridViewDataErrorEventArgs
        • DataGridViewDataErrorEventHandler
        • DataGridViewDataReadEventHandler
        • DataGridViewDataUpdatedEventArgs
        • DataGridViewDataUpdatedEventHandler
        • DataGridViewDateTimePickerCell
        • DataGridViewDateTimePickerColumn
        • DataGridViewDateTimePickerEditingControl
        • DataGridViewEditingControlShowingEventArgs
        • DataGridViewEditingControlShowingEventHandler
        • DataGridViewEditMode
        • DataGridViewElement
        • DataGridViewElementStates
        • DataGridViewHeaderCell
        • DataGridViewImageCell
        • DataGridViewImageCellLayout
        • DataGridViewImageColumn
        • DataGridViewLinkCell
        • DataGridViewLinkColumn
        • DataGridViewMaskedTextBoxCell
        • DataGridViewMaskedTextBoxColumn
        • DataGridViewMaskedTextBoxEditingControl
        • DataGridViewNumericUpDownCell
        • DataGridViewNumericUpDownColumn
        • DataGridViewNumericUpDownEditingControl
        • DataGridViewRow
        • DataGridViewRowCancelEventArgs
        • DataGridViewRowCancelEventHandler
        • DataGridViewRowCollection
        • DataGridViewRowErrorTextNeededEventArgs
        • DataGridViewRowErrorTextNeededEventHandler
        • DataGridViewRowEventArgs
        • DataGridViewRowEventHandler
        • DataGridViewRowHeaderCell
        • DataGridViewRowHeadersWidthSizeMode
        • DataGridViewRowHeightInfoNeededEventArgs
        • DataGridViewRowHeightInfoNeededEventHandler
        • DataGridViewRowsAddedEventArgs
        • DataGridViewRowsAddedEventHandler
        • DataGridViewRowsRemovedEventArgs
        • DataGridViewRowsRemovedEventHandler
        • DataGridViewRowStateChangedEventArgs
        • DataGridViewRowStateChangedEventHandler
        • DataGridViewSelectedCellCollection
        • DataGridViewSelectedColumnCollection
        • DataGridViewSelectedRowCollection
        • DataGridViewSelectionMode
        • DataGridViewSortCompareEventArgs
        • DataGridViewSortCompareEventHandler
        • DataGridViewSortSelectionMode
        • DataGridViewTextBoxCell
        • DataGridViewTextBoxColumn
        • DataGridViewTextBoxEditingControl
        • DataGridViewToolClickEventHandler
        • DataGridViewTriState
        • IDataGridViewEditingControl
        • InputType
        • ScrollEventArgs
        • ScrollEventHandler
        • TextBoxMode
        • TextBoxType
      • ListBox
      • ListControl
        • ListControlConvertEventArgs
        • ListControlConvertEventHandler
      • ListView
        • CacheVirtualItemsEventArgs
        • CacheVirtualItemsEventHandler
        • ColumnClickEventArgs
        • ColumnClickEventHandler
        • ColumnHeader
        • ColumnHeaderAutoResizeStyle
        • ColumnHeaderStyle
        • ColumnReorderedEventArgs
        • ColumnReorderedEventHandler
        • ColumnWidthChangedEventArgs
        • ColumnWidthChangedEventHandler
        • GridLineStyle
        • ImageColumnHeader
        • ItemCheckedEventArgs
        • ItemCheckedEventHandler
        • ItemClickEventArgs
        • ItemClickEventHandler
        • ItemMouseHoverEventArgs
        • ItemMouseHoverEventHandler
        • ItemSelectionChangedEventArgs
        • ItemSelectionChangedEventHandler
        • LabelEditEventArgs
        • LabelEditEventHandler
        • ListView.CheckedIndexCollection
        • ListView.CheckedListViewItemCollection
        • ListView.ColumnHeaderCollection
        • ListView.ListViewItemCollection
        • ListView.SelectedIndexCollection
        • ListView.SelectedListViewItemCollection
        • ListViewBindingCompleteEventArgs
        • ListViewBindingCompleteEventEventHandler
        • ListViewDataUpdatedEventArgs
        • ListViewDataUpdatedEventHandler
        • ListViewItem
        • ListViewItem.ListViewSubItem
        • ListViewItem.ListViewSubItemCollection
        • ListViewItemDragEventArgs
        • ListViewItemDragEventHandler
        • ListViewItemStates
        • ListViewVirtualItemsSelectionRangeChangedEventArgs
        • ListViewVirtualItemsSelectionRangeChangedEventHandler
        • RetrieveVirtualItemEventArgs
        • RetrieveVirtualItemEventHandler
        • SearchForVirtualItemEventArgs
        • SearchForVirtualItemEventHandler
        • View
      • ListViewComboBox
      • PropertyGrid
        • GridItem
        • GridItemCollection
        • GridItemType
        • PropertySort
        • PropertyValueChangedEventArgs
        • PropertyValueChangedEventHandler
        • PropertyValueDataErrorEventArgs
        • PropertyValueDataErrorEventHandler
        • PropertyValueFormattingEventArgs
        • PropertyValueFormattingEventHandler
        • SelectedGridItemBeginEditEventArgs
        • SelectedGridItemBeginEditEventHandler
        • SelectedGridItemChangedEventArgs
        • SelectedGridItemChangedEventHandler
        • SelectedGridItemEndEditEventArgs
        • SelectedGridItemEndEditEventHandler
      • TreeView
        • ItemDragEventArgs
        • ItemDragEventHandler
        • NodeLabelEditEventArgs
        • NodeLabelEditEventHandler
        • TreeNode
        • TreeNodeCollection
        • TreeNodeMouseClickEventArgs
        • TreeNodeMouseClickEventHandler
        • TreeNodeMouseHoverEventArgs
        • TreeNodeMouseHoverEventHandler
        • TreeViewAction
        • TreeViewCancelEventArgs
        • TreeViewCancelEventHandler
        • TreeViewEventArgs
        • TreeViewEventHandler
        • TreeViewNodeDragEventArgs
        • TreeViewNodeDragEventHandler
      • TreeViewComboBox
      • UserComboBox
    • Media
      • Audio
      • FlashPlayer
      • Media
      • Video
    • Menus
      • CheckedMenuItem
      • ContextMenu
      • LinkMenuItem
      • MainMenu
      • Menu
      • Menu.MenuItemCollection
      • MenuBar
      • MenuItem
      • MenuItemEventArgs
      • MenuItemEventHandler
      • MenuItemSizeMode
      • MenuMerge
    • Notifications
      • AlertBox
        • MessageBoxIcon
      • MessageBox
        • MessageBoxButtons
        • MessageBoxDefaultButton
        • MessageBoxIcon
      • Toast
    • Other Components
      • Timer
  • Wisej.Base
    • General
      • Component
      • Cookie
      • CookieCollection
      • PostbackPropertyAttribute
      • TextUtils
    • Responsive
      • ResponsiveProfile
      • ResponsiveProfileCollection
      • ResponsivePropertyAttribute
  • Wisej.Core
    • General
      • BrowserStorage
      • ClientBrowser
      • ClientProfile
      • ClientTheme
      • CookieStorage
      • FileSystemProvider
      • HealthCheck
      • IEventFilter
      • IFileSystemProvider
      • LocalStorage
      • MimeTypes
      • SessionStorage
      • SynchronizedLinkedList<T>
      • SynchronizedList<T>
      • WebMethodAttribute
      • WisejEventArgs
        • WisejEventArgs.KeyboardInfo
        • WisejEventArgs.PointerInfo
      • WisejResourcesAttribute
      • WisejSerializer
      • WisejSerializerOptions
    • Interfaces
      • IWisejComponent
      • IWisejControl
      • IWisejDataStore
      • IWisejEditorService
      • IWisejExtenderProvider
      • IWisejHandler
      • IWisejSerializable
      • IWisejWindow
  • Wisej.Web.VisualBasic
    • Extensions
      • Interaction
      • MsgBoxResult
      • MsgBoxStyle
  • System
    • Extensions
      • DateTimeExtensions
      • FontExtensions
      • JSON
      • StringExtensions
Powered by GitBook
On this page
  • Constructors
  • Form()
  • Properties
  • AcceptButton
  • Active
  • ActiveForm
  • ActiveMdiChild
  • AllowTransparency
  • AppearanceKey
  • AutoClose
  • AutoSize
  • AutoSizeMode
  • AutoValidate
  • CancelButton
  • ClientSize
  • CloseBox
  • CloseReason
  • ControlBox
  • DialogResult
  • DisableMergedMenu
  • FormBorderStyle
  • HasMdiChildren
  • HasOwnedForms
  • HeaderBackColor
  • HeaderForeColor
  • Icon
  • IconLarge
  • IconLargeSource
  • IconSource
  • IsClosed
  • IsDialog
  • IsMdiChild
  • IsMdiContainer
  • KeepCentered
  • KeepOnScreen
  • LiveResize
  • MaximizeBox
  • MaximumSize
  • MdiChildren
  • MdiClient
  • MdiParent
  • MdiTabProperties
  • Menu
  • MergedMenu
  • MinimizeBox
  • MinimumSize
  • Modal
  • Movable
  • Opacity
  • OwnedForms
  • Owner
  • ShowInTaskbar
  • ShowModalMask
  • Size
  • StartPosition
  • Text
  • Tools
  • TopLevel
  • TopMost
  • WindowState
  • Methods
  • Activate()
  • AddOwnedForm(ownedForm)
  • Close()
  • PointToClient(point)
  • PointToScreen(point)
  • RemoveOwnedForm(ownedForm)
  • Show(onclose)
  • Show(owner, onclose)
  • ShowDialog(onclose)
  • ShowDialog(owner, onclose)
  • ShowDialogAsync(owner)
  • Events
  • Activated
  • Deactivate
  • FormClosed
  • FormClosing
  • HelpButtonClicked
  • Load
  • MaximumSizeChanged
  • MdiChildActivate
  • MdiChildAdded
  • MdiChildRemoved
  • MinimumSizeChanged
  • Shown
  • ToolClick
  • WindowStateChanged
  • Inherited By
  • Implements

Was this helpful?

Export as PDF
  1. Wisej.Web
  2. Containers

Form

Wisej.Web.Form

Last updated 2 years ago

Was this helpful?

Namespace: Wisej.Web

Assembly: Wisej.Framework (2.5.0.0)

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

public class Form : ContainerControl, IWisejWindow
Public Class Form
    Inherits ContainerControl
    Implements IWisejWindow

Constructors

Form()

Default constructor.

Properties

AcceptButton

: Returns or sets the button on the form that is clicked when the user presses the ENTER key.

Throws:

Throws:

Throws:

Throws:

Throws:

Methods

Activates the form and gives it focus.

Adds an owned form to this form.

Parameter
Type
Description

ownedForm

Closes the form.

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

Parameter
Type
Description

point

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

Parameter
Type
Description

point

Removes an owned form from this form.

Parameter
Type
Description

ownedForm

Shows the form to the user.

Parameter
Type
Description

onclose

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.
});

Throws:

Shows the form with the specified owner to the user.

Parameter
Type
Description

owner

onclose

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.
});

Throws:

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

Parameter
Type
Description

onclose

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.

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

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.

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.

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.

Parameter
Type
Description

owner

onclose

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.

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

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.

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.

Throws:

Asynchronously shows the form as an awaitable modal dialog box.

Parameter
Type
Description

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.

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

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.

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();
}

Throws:

Events

Inherited By

Name
Description

UI implementation for the FileDialog class.

UI implementation for the FolderDialog class.

Implements

Name
Description

Bindable components implement this interface.

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

All wisej components implement this interface.

All wisej top-level windows implement this interface.

Allows an object to serialize itself.

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.

AppearanceKey

: Sets the appearance key for the theme engine.

AutoClose

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

AutoSize

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

AutoSizeMode

: Indicates the automatic sizing behavior of the control.

AutoValidate

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

CancelButton

: Returns or sets the button control that is clicked when the user presses the ESC key.

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.

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.

CloseReason

: Returns the reason for the form closing.

ControlBox

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

DialogResult

: Returns or sets the dialog result for the form.

DisableMergedMenu

: Enables or disables merging the MdiParent's menu with the active MdiChild form's menu.

FormBorderStyle

: Returns or sets the border style of the form.

HasMdiChildren

: Returns whether this form is an and has any Mdi child form.

HasOwnedForms

: Returns whether this form has any owned form.

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 .

IconLarge

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

IconLargeSource

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

IconSource

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

IsClosed

: Returns whether the has been closed.

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 .

IsMdiChild

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

IsMdiContainer

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

KeepCentered

: Keeps the form always centered in the browser.

KeepOnScreen

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

LiveResize

: Returns or sets whether the form is resized while the border is being dragged.

MaximizeBox

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

MaximumSize

: Returns the maximum size the form can be resized to.

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.

MdiClient

: Returns the internal MdiClient component.

MdiParent

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

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.

MergedMenu

: Returns the merged menu for the form.

MinimizeBox

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

MinimumSize

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

Modal

: Returns whether this form is displayed modally.

Movable

: Returns or sets whether the form can be moved by dragging.

Opacity

: Returns or sets the opacity level of the form.

OwnedForms

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

Owner

: Returns or sets the form that owns this form.

A top-level window cannot have an owner.

ShowInTaskbar

: Returns or sets whether the form is displayed in the taskbar.

ShowModalMask

: Returns or sets a value that shows the modal mask on the client when this form is displayed.

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.

Text

: Returns or sets the title of the window.

Tools

: Returns the instance of associated with this control.

TopLevel

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

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.

WindowState

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

Activate()

AddOwnedForm(ownedForm)

The that this form will own.

Close()

PointToClient(point)

The screen coordinate to convert.

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

PointToScreen(point)

The client coordinate to convert.

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

RemoveOwnedForm(ownedForm)

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

Show(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.

Show(owner, onclose)

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

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.

ShowDialog(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.

ShowDialog(owner, onclose)

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

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.

ShowDialogAsync(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.

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.

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

Boolean
Form
Form
Boolean
String
Boolean
Boolean
AutoSizeMode
AutoValidate
IButtonControl
Size
Boolean
CloseReason
Boolean
DialogResult
Boolean
FormBorderStyle
Boolean
Color
Color
Image
Form
Image
Form
String
Form
String
Form
Boolean
Form
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
Size
FormStartPosition
String
Form
ComponentToolCollection
ComponentToolCollection
Boolean
Exception
Boolean
FormWindowState
Point
Point
Point
Point
Point
Point
InvalidOperationException
InvalidOperationException
DialogResult
DialogResult
InvalidOperationException
DialogResult
DialogResult
ArgumentException
InvalidOperationException
Task<DialogResult>
Task
DialogResult
InvalidOperationException
EventHandler
EventHandler
FormClosedEventHandler
FormClosingEventHandler
EventHandler
EventHandler
EventHandler
ControlEventHandler
ControlEventHandler
EventHandler
ToolClickEventHandler
ComponentTool
Boolean
IsMdiContainer
Boolean
Form
ShowDialog
ShowDialog
FormClosed
FormClosed
EventHandler
MaximumSize
EventHandler
MinimumSize
EventHandler
WindowStateChanged
Control
ScrollableControl
ContainerControl
Form
IButtonControl
Form
Form
Point
Point
Point
Point
Form
Form
Action<Form, DialogResult>
Form
Action<Form, DialogResult>
Action<Form, DialogResult>
Form
Action<Form, DialogResult>
Form
FileDialogUI
FolderBrowserDialogUI
IBindableComponent
IContainerControl
IWisejComponent
IWisejControl
Control
IWisejWindow
IWisejSerializable
event.
Form
OwnedForms
event.
event.
Form
OwnedForms
event.
Form
OwnedForms
DialogResult
AcceptButton
Close
DialogResult
CancelButton
Close
DialogResult
DialogResult
IsDisposed