The SftMask class represents a masked edit control for numeric, masked and free-form input.
The SftMask.Mask property defines the input fields, single input positions and literal characters. Without a mask, the control is a single-line edit control. Numeric fields can show up and down buttons (SftMask.ButtonStyle property) and a popup calculator; free-form input can be completed from earlier entries, files or folders (SftMask.AutoComplete property).
Namespace: Softelvdm.SftMaskNET
Assembly: Softelvdm.SftMaskNET
Inheritance
public class SftMask : Softelvdm.SftMaskNET.Controls.SoftelvdmUserControl;
Public Class SftMask
Inherits Softelvdm.SftMaskNET.Controls.SoftelvdmUserControl![]() | SftMask | Initializes a new instance of the SftMask class. |
![]() ![]() | AccessibilityObject | Gets the AccessibleObject assigned to the control. |
![]() ![]() | AccessibleDefaultActionDescription | Gets or sets the default action description of the control for use by accessibility client applications. |
![]() ![]() | AccessibleDescription | Gets or sets the description of the control used by accessibility client applications. |
![]() ![]() | AccessibleName | Gets or sets the name of the control used by accessibility client applications. |
![]() ![]() | AccessibleRole | Gets or sets the accessible role of the control |
![]() ![]() | AllowDrop | Gets or sets a value indicating whether the control can accept data that the user drags onto it. |
![]() | AllowEmpty | Defines whether an empty control is valid when a mask is defined. |
![]() | AllowEmptyWithoutMask | Defines whether an empty control is valid when no mask is defined. |
![]() | AllowF4 | Defines whether F4 opens and closes the autocomplete list and enters the calculator's total. |
![]() | AllowPromptAsInput | Defines whether the prompt character can be typed as input. |
![]() ![]() | Anchor | Gets or sets the edges of the container to which a control is bound and determines how a control is resized with its parent. |
![]() | AsciiOnly | Defines whether the input positions of the mask accept only ASCII characters. |
![]() | AutoAdvance | Defines whether the caret moves to the next input field when a numeric field is full. |
![]() | AutoComplete | Returns the autocomplete settings. |
![]() ![]() | AutoScrollOffset | Gets or sets where this control is scrolled to in ScrollControlIntoView. |
![]() | AutoSize | Defines whether the control sizes its height to its font. |
![]() | AutoTab | Defines whether the input focus moves to the next control when a typed character makes the contents valid. |
![]() | BackColor | Defines the background color of the control. |
![]() ![]() | BackgroundImage | Gets or sets the background image displayed in the control. |
![]() ![]() | BackgroundImageLayout | Gets or sets the background image layout as defined in the ImageLayout enumeration. |
![]() | BeepOnError | Defines whether the control beeps when it rejects a character or a key. |
![]() ![]() | BindingContext | Gets or sets the BindingContext for the control. |
![]() | BorderColor | Defines the color of a FixedSingle border. |
![]() | BorderStyle | Defines the border of the control. |
![]() ![]() | Bottom | Gets the distance, in pixels, between the bottom edge of the control and the top edge of its container's client area. |
![]() ![]() | Bounds | Gets or sets the size and location of the control including its nonclient elements, in pixels, relative to the parent control. |
![]() | ButtonStyle | Defines the buttons shown in the control. |
![]() | Calculator | Returns the settings of the popup calculator. |
![]() | CanEnableIme | Returns whether the IME can be enabled for the control. |
![]() ![]() | CanFocus | Gets a value indicating whether the control can receive focus. |
![]() ![]() | CanRaiseEvents | Determines if events can be raised on the control. |
![]() ![]() | CanSelect | Gets a value indicating whether the control can be selected. |
![]() | CanUndo | Returns whether an earlier change can be undone. |
![]() ![]() | Capture | Gets or sets a value indicating whether the control has captured the mouse. |
![]() ![]() | CausesValidation | Gets or sets a value indicating whether the control causes validation to be performed on any controls that require validation when it receives focus. |
![]() ![]() ![]() | CheckForIllegalCrossThreadCalls | Gets or sets a value indicating whether to catch calls on the wrong thread that access a control's Handle property when an application is being debugged. |
![]() ![]() | ClientRectangle | Gets the rectangle that represents the client area of the control. |
![]() ![]() | ClientSize | Gets or sets the height and width of the client area of the control. |
![]() | ClipboardFormat | Defines the form of the text copied to the clipboard, and how pasted text is entered. |
![]() ![]() | CompanyName | Gets the name of the company or creator of the application containing the control. |
![]() ![]() | ComponentSettings | Defines the control's design-time settings. |
![]() ![]() | Container | Gets the IContainer that contains the Component. |
![]() ![]() | ContainsFocus | Gets a value indicating whether the control, or one of its child controls, currently has the input focus. |
![]() | Contents | The instance of the ContentsClass class that serializes the license information for the Visual Studio designer. |
![]() ![]() | ContextMenu | Gets or sets the shortcut menu associated with the control. |
![]() ![]() | ContextMenuStrip | Gets or sets the ContextMenuStrip associated with this control. |
![]() ![]() | Controls | Gets the collection of controls contained within the control. |
![]() ![]() | Created | Gets a value indicating whether the control has been created. |
![]() ![]() | CreateParams | Gets the required creation parameters when the control handle is created. |
![]() | Culture | Defines the culture that provides the decimal and group separators, the digit grouping, the currency symbol, the date and time separators and the case conversion. |
![]() ![]() | Cursor | Gets or sets the cursor that is displayed when the mouse pointer is over the control. |
![]() ![]() | CustomCode | Defines optional product customization. |
![]() ![]() | DarkMode | Defines whether the control uses dark mode colors. |
![]() ![]() | DarkModeActive | Returns whether dark mode colors are currently in use. |
![]() ![]() | DataBindings | Gets the data bindings for the control. |
![]() ![]() ![]() | DefaultBackColor | Gets the default background color of the control. |
![]() ![]() | DefaultCursor | Gets or sets the default cursor for the control. |
![]() ![]() ![]() | DefaultFont | Gets the default font of the control. |
![]() ![]() ![]() | DefaultForeColor | Gets the default foreground color of the control. |
![]() | DefaultHandling | Defines when the default text is entered into an empty control. |
![]() ![]() | DefaultImeMode | Gets the default Input Method Editor (IME) mode supported by the control. |
![]() ![]() | DefaultMargin | Gets the space, in pixels, that is specified by default between controls. |
![]() ![]() | DefaultMaximumSize | Gets the length and height, in pixels, that is specified as the default maximum size of a control. |
![]() ![]() | DefaultMinimumSize | Gets the length and height, in pixels, that is specified as the default minimum size of a control. |
![]() ![]() | DefaultPadding | Gets the internal spacing, in pixels, of the contents of a control. |
![]() ![]() | DefaultSize | Gets the default size of the control. |
![]() | DefaultText | Defines the text entered into the control when it is empty. |
![]() ![]() | DesignMode | Gets a value that indicates whether the Component is currently in design mode. |
![]() ![]() | DeviceDpi | Gets the DPI value for the display device where the control is currently being displayed. |
![]() | DisabledForeColor | Defines the color of the input while the control is disabled. |
![]() | DisabledLiteralForeColor | Defines the color of the literals while the control is disabled. |
![]() ![]() | DisplayRectangle | Gets the rectangle that represents the display area of the control. |
![]() ![]() | Disposing | Gets a value indicating whether the base Control class is in the process of disposing. |
![]() ![]() | Dock | Gets or sets which control borders are docked to its parent control and determines how a control is resized with its parent. |
![]() ![]() | DoubleBuffered | Gets or sets a value indicating whether this control should redraw its surface using a secondary buffer to reduce or prevent flicker. |
![]() | DragMode | Defines how the selected text is dragged. |
![]() | DroppedDown | Returns whether the calculator or the autocomplete list is open. |
![]() ![]() | Enabled | Gets or sets a value indicating whether the control can respond to user interaction. |
![]() | EntrySelect | Defines the selection when the control receives the input focus. |
![]() | EntrySelectMouse | Defines whether the SftMask.EntrySelect property is also used when a mouse click gives the control the input focus. |
![]() ![]() | Events | Gets the list of event handlers that are attached to this Component. |
![]() | FocusBackColor | Defines the background color while the control has the input focus. |
![]() ![]() | Focused | Gets a value indicating whether the control has input focus. |
![]() | FocusForeColor | Defines the color of the input while the control has the input focus. |
![]() | FocusSelectionBackColor | Defines the background color of the selection while the control has the input focus. |
![]() | FocusSelectionForeColor | Defines the text color of the selection while the control has the input focus. |
![]() ![]() | Font | Gets or sets the font of the text displayed by the control. |
![]() ![]() | FontHeight | Gets or sets the height of the font of the control. |
![]() | ForeColor | Defines the color of the input. |
![]() | FormattedText | Defines a text shown instead of the contents while the control does not have the input focus. |
![]() ![]() | Handle | Gets the window handle that the control is bound to. |
![]() ![]() | HasChildren | Gets a value indicating whether the control contains one or more child controls. |
![]() ![]() | Height | Gets or sets the height of the control. |
![]() | HideSelection | Defines whether the selection is hidden while the control does not have the input focus. |
![]() ![]() | HighContrastActive | Returns whether the colors of the Windows contrast theme are currently in use. |
![]() ![]() | HighContrastMode | Defines whether the control uses the colors of the Windows contrast theme. |
![]() | HotTrack | Defines whether the buttons show a highlight while the mouse is over them. |
![]() | IgnoreRangeWhileTyping | Defines whether the ranges of numeric fields are ignored while the user types. |
![]() ![]() | ImeMode | Gets or sets the Input Method Editor (IME) mode of the control. |
![]() ![]() | ImeModeBase | Gets or sets the IME mode of a control. |
![]() ![]() | Initializing | Defines whether this control is initializing. |
![]() | InputMode | Defines whether typed characters are inserted or replace the existing characters. |
![]() | InvalidBackColor | Defines the background color while the contents are not valid. |
![]() | InvalidForeColor | Defines the text color while the contents are not valid. |
![]() ![]() | InvokeRequired | Gets a value indicating whether the caller must call an invoke method when making method calls to the control because the caller is on a different thread than the one the control was created on. |
![]() ![]() | IsAccessible | Gets or sets a value indicating whether the control is visible to accessibility applications. |
![]() | IsComplete | Returns whether every mandatory input position and every numeric field holds input. |
![]() ![]() | IsDisposed | Gets a value indicating whether the control has been disposed of. |
![]() | IsEmpty | Returns whether no input position holds a character. |
![]() | IsFull | Returns whether every input position holds a character and every numeric field a number. |
![]() ![]() | IsHandleCreated | Gets a value indicating whether the control has a handle associated with it. |
![]() ![]() | IsMirrored | Gets a value indicating whether the control is mirrored. |
![]() | IsValid | Returns whether the contents are valid. |
![]() | Label | Defines a text shown next to the input, such as a currency symbol or a unit. |
![]() | LabelPosition | Defines where the label is shown. |
![]() ![]() | LayoutEngine | Gets a cached instance of the control's layout engine. |
![]() ![]() | Left | Gets or sets the distance, in pixels, between the left edge of the control and the left edge of its container's client area. |
![]() | License | The product's license number. |
![]() | LiteralForeColor | Defines the color of the literals of the mask. |
![]() ![]() | Location | Gets or sets the coordinates of the upper-left corner of the control relative to the upper-left corner of its container. |
![]() ![]() | Margin | Gets or sets the space between controls. |
![]() | Mask | Defines the mask for data entry. |
![]() ![]() | MaximumSize | Gets or sets the size that is the upper limit that GetPreferredSize can specify. |
![]() | MaxLength | Defines the maximum number of characters without a mask. |
![]() ![]() | MinimumSize | Gets or sets the size that is the lower limit that GetPreferredSize can specify. |
![]() | Modified | Defines whether the user changed the contents since the property was last set to False. |
![]() ![]() ![]() | MouseButtons | Gets a value indicating which of the mouse buttons is in a pressed state. |
![]() ![]() ![]() | MousePosition | Gets the position of the mouse cursor in screen coordinates. |
![]() ![]() | Name | Gets or sets the name of the control. |
![]() | Overtype | Defines whether the control is in overtype mode. |
![]() ![]() | Padding | Gets or sets padding within the control. |
![]() ![]() | Parent | Gets or sets the parent container of the control. |
![]() | PasswordChar | Defines the character shown instead of the input in password positions. |
![]() | Positions | Returns information about each position of the mask. |
![]() | PreferredHeight | Returns the height that fits the font. |
![]() ![]() | PreferredSize | Gets the size of a rectangular area into which the control can fit. |
![]() ![]() | ProductName | Returns the product name of the control. |
![]() ![]() | ProductVersion | Returns the version of the assembly containing the control. |
![]() | PromptChar | Defines the character shown in empty input positions while the control has the input focus. |
![]() | PromptUnderline | Defines whether input positions are underlined while the control has the input focus. |
![]() | PromptUnderlineNoFocus | Defines whether input positions are underlined while the control does not have the input focus. |
![]() ![]() ![]() | PropagatingImeMode | Gets an object that represents a propagating IME mode. |
![]() | ReadOnly | Defines whether the user can change the contents. |
![]() | ReadOnlyEllipse | Defines whether the ellipse button is disabled. |
![]() | ReadOnlyUpDown | Defines whether the up and down buttons are disabled. |
![]() ![]() | RecreatingHandle | Gets a value indicating whether the control is currently re-creating its handle. |
![]() ![]() | Region | Gets or sets the window region associated with the control. |
![]() | RejectInputOnFirstFailure | Defines whether a pasted text is rejected as a whole when one of its characters does not fit. |
![]() ![]() | RenderRightToLeft | This property is now obsolete. |
![]() | ResetOnPrompt | Defines whether typing the prompt character empties the input position at the caret. |
![]() | ResetOnSpace | Defines whether typing a space at a position that does not accept it empties the position. |
![]() ![]() | ResizeRedraw | Gets or sets a value indicating whether the control redraws itself when resized. |
![]() ![]() | Right | Gets the distance, in pixels, between the right edge of the control and the left edge of its container's client area. |
![]() ![]() | RightToLeft | Gets or sets a value indicating whether control's elements are aligned to support locales using right-to-left fonts. |
![]() ![]() | SaveSettings | Defines whether design-time control information is saved. |
![]() ![]() | ScaleChildren | Gets a value that determines the scaling of child controls. |
![]() | SelectedText | Defines the selected text. |
![]() | SelectionBackColor | Defines the background color of the selection. |
![]() | SelectionForeColor | Defines the text color of the selection. |
![]() | SelectionLength | Defines the number of selected positions. |
![]() | SelectionStart | Defines the starting position of the selection. |
![]() | ShortcutsEnabled | Defines whether Ctrl+A, the clipboard and undo shortcuts and the context menu are available. |
![]() ![]() | ShowFocusCues | Gets a value indicating whether the control should display focus rectangles. |
![]() ![]() | ShowKeyboardCues | Gets a value indicating whether the user interface is in the appropriate state to show or hide keyboard accelerators. |
![]() | ShowPromptNoFocus | Defines whether the prompt characters are also shown while the control does not have the input focus. |
![]() ![]() | Site | Gets or sets the site of the control. |
![]() ![]() | Size | Gets or sets the height and width of the control. |
![]() | SkipLiterals | Defines whether typing the literal character at a literal position moves past it. |
![]() | SpinAccelerations | Returns the steps used while an up or down button is held down. |
![]() | SpinArrowKeys | Defines whether the Up and Down keys spin a numeric field defined with the ^ subtoken. |
![]() | SpinIncrement | Defines the step of the built-in spinning of numeric fields. |
![]() | TabAdvance | Defines whether the Tab key moves between the fields of the mask before it moves to the next control. |
![]() | TabAdvanceLast | Defines whether the Tab key stops at the end of the contents before moving to the next control (SftMask.TabAdvance property). |
![]() ![]() | TabIndex | Gets or sets the tab order of the control within its container. |
![]() ![]() | TabStop | Gets or sets a value indicating whether the user can give the focus to this control using the TAB key. |
![]() ![]() | Tag | Gets or sets the object that contains data about the control. |
![]() | Text | Defines the contents of the control. |
![]() | TextAlign | Defines the alignment of the contents. |
![]() | TextFormat | Defines the form of the SftMask.Text property. |
![]() | TextLength | Returns the number of characters of the contents (SftMask.Text property). |
![]() | TextNoLiterals | Defines the contents without the literals. |
![]() | TextWithLiterals | Defines the contents including the literals. |
![]() ![]() | Top | Gets or sets the distance, in pixels, between the top edge of the control and the top edge of its container's client area. |
![]() ![]() | TopLevelControl | Gets the parent control that is not parented by another Windows Forms control. Typically, this is the outermost Form that the control is contained in. |
![]() | UpDownAlign | Defines on which side the up and down buttons (or the ellipse button) are shown. |
![]() | UseSystemPasswordChar | Defines whether password positions show the system's password character. |
![]() ![]() | UseThemes | Defines whether Windows themes are used. |
![]() ![]() | UseWaitCursor | Gets or sets a value indicating whether to use the wait cursor for the current control and all child controls. |
![]() | ValidatingType | Defines the type the Validating step converts the contents to. |
![]() | Value | Defines the value of the first numeric field of the mask. |
![]() | Values | Returns the values of the value tokens (!0 to !9) of the mask. |
![]() ![]() | Visible | Gets or sets a value indicating whether the control and all its child controls are displayed. |
![]() ![]() | Width | Gets or sets the width of the control. |
![]() ![]() | WindowTarget | This property is not relevant for this class. |
![]() ![]() | AccessibilityNotifyClients | Notifies the accessibility client applications of the specified AccessibleEvents for the specified child control. |
![]() | Announce | Announces a status message to screen readers. |
![]() | ApplyDefaultText | Enters the default text (SftMask.DefaultText property) if the control is empty. |
![]() ![]() | BeginInvoke | Executes the specified delegate asynchronously on the thread that the control's underlying handle was created on. |
![]() ![]() | BringToFront | Brings the control to the front of the z-order. |
![]() ![]() | CancelMode | Cancels internal modes. |
![]() | Clear | Empties the control. |
![]() | ClearUndo | Clears the information about earlier changes, so they cannot be undone. |
![]() | CloseDropDown | Closes the calculator or the autocomplete list without changing the contents. |
![]() ![]() | Contains | Retrieves a value indicating whether the specified control is a child of the control. |
![]() | Copy | Copies the selected text to the clipboard. |
![]() ![]() | CreateAccessibilityInstance | Creates a new accessibility object for the control. |
![]() ![]() | CreateControl | Forces the creation of the visible control, including the creation of the handle and any visible child controls. |
![]() ![]() | CreateControlsInstance | Creates a new instance of the control collection for the control. |
![]() ![]() | CreateGraphics | Creates the Graphics for the control. |
![]() ![]() | CreateHandle | Creates a handle for the control. |
![]() ![]() | CreateObjRef | Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. |
![]() | Cut | Moves the selected text to the clipboard. |
![]() ![]() | DefWndProc | Sends the specified message to the default window procedure. |
![]() | DeselectAll | Removes the selection; the caret stays where it is. |
![]() ![]() | DestroyHandle | Destroys the handle associated with the control. |
![]() | Dispose | Cleans up any resources being used. |
![]() ![]() | DoDragDrop | Begins a drag-and-drop operation. |
![]() ![]() | DrawToBitmap | Supports rendering to the specified bitmap. |
![]() ![]() | EndInvoke | Retrieves the return value of the asynchronous operation represented by the IAsyncResult passed. |
![]() ![]() | Equals | Determines whether the specified object is equal to the current object. |
![]() ![]() | Finalize | Releases unmanaged resources and performs other cleanup operations before the Component is reclaimed by garbage collection. |
![]() ![]() | FindForm | Retrieves the form that the control is on. |
![]() ![]() | Focus | Sets the focus to this instance of the control. |
![]() ![]() | FormatCurrency | Formats an amount of money with the conventions of a culture. |
![]() ![]() | FormatNumber | Formats a number with the conventions of a culture. |
![]() ![]() ![]() | FromChildHandle | Retrieves the control that contains the specified handle. |
![]() ![]() ![]() | FromHandle | Returns the control that is currently associated with the specified handle. |
![]() ![]() | GetAccessibilityObjectById | Retrieves the specified AccessibleObject. |
![]() ![]() | GetAutoSizeMode | Retrieves a value indicating how a control will behave when its AutoSize property is enabled. |
![]() | GetCharBounds | Returns the rectangle covering a range of character positions. |
![]() | GetCharIndexFromPosition | Returns the position of the character closest to a location. |
![]() ![]() | GetChildAtPoint | Retrieves the child control that is located at the specified coordinates. |
![]() ![]() | GetContainerControl | Returns the next ContainerControl up the control's chain of parent controls. |
![]() ![]() | GetContents | Returns the properties of a control as an XML document. |
![]() ![]() | GetHashCode | Serves as the default hash function. |
![]() ![]() | GetLifetimeService | Retrieves the current lifetime service object that controls the lifetime policy for this instance. |
![]() ![]() | GetNextControl | Retrieves the next control forward or back in the tab order of child controls. |
![]() | GetPositionFromCharIndex | Returns the location of a character position. |
![]() | GetPreferredSize | Returns the control's current width and the height that fits the font (SftMask.PreferredHeight property). |
![]() ![]() | GetScaledBounds | Retrieves the bounds within which the control is scaled. |
![]() ![]() | GetService | Returns an object that represents a service provided by the Component or by its Container. |
![]() ![]() | GetStyle | Retrieves the value of the specified control style bit for the control. |
![]() | GetText | Returns the contents of the control in a given form. |
![]() ![]() | GetTopLevel | Determines if the control is a top-level control. |
![]() ![]() | GetType | Gets the Type of the current instance. |
![]() ![]() | Hide | Conceals the control from the user. |
![]() | HitTest | Returns the part of the control at a location. |
![]() ![]() | InitializeLifetimeService | Obtains a lifetime service object to control the lifetime policy for this instance. |
![]() ![]() | InitLayout | Called after the control has been added to another container. |
![]() ![]() | Invalidate | Invalidates the entire surface of the control and causes the control to be redrawn. |
![]() ![]() | Invoke | Executes the specified delegate on the thread that owns the control's underlying window handle. |
![]() ![]() | InvokeGotFocus | Raises the GotFocus event for the specified control. |
![]() ![]() | InvokeLostFocus | Raises the LostFocus event for the specified control. |
![]() ![]() | InvokeOnClick | Raises the Click event for the specified control. |
![]() ![]() | InvokePaint | Raises the Paint event for the specified control. |
![]() ![]() | InvokePaintBackground | Raises the PaintBackground event for the specified control. |
![]() | IsInputChar | Determines whether a character is an input character handled by the control. |
![]() | IsInputKey | Determines whether a key is an input key handled by the control. |
![]() ![]() ![]() | IsKeyLocked | Determines whether the CAPS LOCK, NUM LOCK, or SCROLL LOCK key is in effect. |
![]() ![]() ![]() | IsMnemonic | Determines if the specified character is the mnemonic character assigned to the control in the specified string. |
![]() ![]() | LogicalToDeviceUnits | Converts a Logical DPI value to it's equivalent DeviceUnit DPI value. |
![]() ![]() | MemberwiseClone | Creates a shallow copy of the current Object. |
![]() ![]() | NotifyInvalidate | Raises the Invalidated event with a specified region of the control to invalidate. |
![]() ![]() | OnAutoSizeChanged | Raises the AutoSizeChanged event. |
![]() ![]() | OnBackColorChanged | Raises the BackColorChanged event. |
![]() ![]() | OnBackgroundImageChanged | Raises the BackgroundImageChanged event. |
![]() ![]() | OnBackgroundImageLayoutChanged | Raises the BackgroundImageLayoutChanged event. |
![]() ![]() | OnBindingContextChanged | Raises the BindingContextChanged event. |
![]() ![]() | OnCausesValidationChanged | Raises the CausesValidationChanged event. |
![]() ![]() | OnChangeUICues | Raises the ChangeUICues event. |
![]() ![]() | OnClick | Raises the Click event. |
![]() ![]() | OnClientSizeChanged | Raises the ClientSizeChanged event. |
![]() ![]() | OnContextMenuChanged | Raises the ContextMenuChanged event. |
![]() ![]() | OnContextMenuStripChanged | Raises the ContextMenuStripChanged event. |
![]() ![]() | OnControlAdded | Raises the ControlAdded event. |
![]() ![]() | OnControlRemoved | Raises the ControlRemoved event. |
![]() ![]() | OnCreateControl | Raises the CreateControl method. |
![]() ![]() | OnCursorChanged | Raises the CursorChanged event. |
![]() ![]() | OnDockChanged | Raises the DockChanged event. |
![]() ![]() | OnDoubleClick | Raises the DoubleClick event. |
![]() ![]() | OnDpiChangedAfterParent | Raises the DpiChangedAfterParent event. |
![]() ![]() | OnDpiChangedBeforeParent | Raises the DpiChangedBeforeParent event. |
![]() | OnDragDrop | Raises the DragDrop event. |
![]() | OnDragEnter | Raises the DragEnter event. |
![]() | OnDragLeave | Raises the DragLeave event. |
![]() | OnDragOver | Raises the DragOver event. |
![]() | OnEnabledChanged | Raises the EnabledChanged event. |
![]() ![]() | OnEnter | Raises the Enter event. |
![]() | OnFontChanged | Raises the FontChanged event. |
![]() ![]() | OnForeColorChanged | Raises the ForeColorChanged event. |
![]() ![]() | OnGiveFeedback | Raises the GiveFeedback event. |
![]() | OnGotFocus | Raises the GotFocus event. |
![]() | OnHandleCreated | Raises the HandleCreated event. |
![]() ![]() | OnHandleDestroyed | Raises the HandleDestroyed event. |
![]() ![]() | OnHelpRequested | Raises the HelpRequested event. |
![]() ![]() | OnImeModeChanged | Raises the ImeModeChanged event. |
![]() ![]() | OnInvalidated | Raises the Invalidated event. |
![]() | OnKeyDown | Raises the KeyDown event. |
![]() | OnKeyPress | Raises the KeyPress event. |
![]() | OnKeyUp | Raises the KeyUp event. |
![]() ![]() | OnLayout | Raises the Layout event. |
![]() | OnLeave | Raises the Leave event. |
![]() ![]() | OnLocationChanged | Raises the LocationChanged event. |
![]() | OnLostFocus | Raises the LostFocus event. |
![]() ![]() | OnMarginChanged | Raises the MarginChanged event. |
![]() | OnMouseCaptureChanged | Raises the MouseCaptureChanged event. |
![]() ![]() | OnMouseClick | Raises the MouseClick event. |
![]() ![]() | OnMouseDoubleClick | Raises the MouseDoubleClick event. |
![]() | OnMouseDown | Raises the MouseDown event. |
![]() ![]() | OnMouseEnter | Raises the MouseEnter event. |
![]() ![]() | OnMouseHover | Raises the MouseHover event. |
![]() | OnMouseLeave | Raises the MouseLeave event. |
![]() | OnMouseMove | Raises the MouseMove event. |
![]() | OnMouseUp | Raises the MouseUp event. |
![]() | OnMouseWheel | Raises the MouseWheel event. |
![]() ![]() | OnMove | Raises the Move event. |
![]() ![]() | OnNotifyMessage | Notifies the control of Windows messages. |
![]() ![]() | OnPaddingChanged | Raises the PaddingChanged event. |
![]() | OnPaint | Raises the Paint event. |
![]() | OnPaintBackground | Paints the background of the control. |
![]() ![]() | OnParentBackColorChanged | Raises the BackColorChanged event when the BackColor property value of the control's container changes. |
![]() ![]() | OnParentBackgroundImageChanged | Raises the BackgroundImageChanged event when the BackgroundImage property value of the control's container changes. |
![]() ![]() | OnParentBindingContextChanged | Raises the BindingContextChanged event when the BindingContext property value of the control's container changes. |
![]() ![]() | OnParentChanged | Raises the ParentChanged event. |
![]() ![]() | OnParentCursorChanged | Raises the CursorChanged event. |
![]() ![]() | OnParentEnabledChanged | Raises the EnabledChanged event when the Enabled property value of the control's container changes. |
![]() ![]() | OnParentFontChanged | Raises the FontChanged event when the Font property value of the control's container changes. |
![]() ![]() | OnParentForeColorChanged | Raises the ForeColorChanged event when the ForeColor property value of the control's container changes. |
![]() ![]() | OnParentRightToLeftChanged | Raises the RightToLeftChanged event when the RightToLeft property value of the control's container changes. |
![]() ![]() | OnParentVisibleChanged | Raises the VisibleChanged event when the Visible property value of the control's container changes. |
![]() ![]() | OnPreviewKeyDown | Raises the PreviewKeyDown event. |
![]() ![]() | OnPrint | Raises the Paint event. |
![]() ![]() | OnQueryContinueDrag | Raises the QueryContinueDrag event. |
![]() ![]() | OnRegionChanged | Raises the RegionChanged event. |
![]() ![]() | OnResize | Raises the Resize event. |
![]() | OnRightToLeftChanged | Raises the RightToLeftChanged event. |
![]() | OnSizeChanged | Raises the SizeChanged event. |
![]() ![]() | OnStyleChanged | Raises the StyleChanged event. |
![]() ![]() | OnSystemColorsChanged | Raises the SystemColorsChanged event. |
![]() ![]() | OnTabIndexChanged | Raises the TabIndexChanged event. |
![]() ![]() | OnTabStopChanged | Raises the TabStopChanged event. |
![]() ![]() | OnTextChanged | Raises the TextChanged event. |
![]() ![]() | OnValidated | Raises the Validated event. |
![]() | OnValidating | Raises the Validating event, after the control validated its contents. |
![]() | OnVisibleChanged | Raises the VisibleChanged event. |
![]() | Paste | Replaces the selection with the text on the clipboard, or with a given text as if it were pasted. |
![]() | PerformEllipseClick | Raises the SftMask.EllipseClick event, as clicking the ellipse button does. |
![]() ![]() | PerformLayout | Forces the control to apply layout logic to all its child controls. |
![]() ![]() | PointToClient | Computes the location of the specified screen point into client coordinates. |
![]() ![]() | PointToScreen | Computes the location of the specified client point into screen coordinates. |
![]() ![]() | PreProcessControlMessage | Preprocesses keyboard or input messages within the message loop before they are dispatched. |
![]() ![]() | PreProcessMessage | Preprocesses keyboard or input messages within the message loop before they are dispatched. |
![]() | ProcessCmdKey | Processes a command key. |
![]() ![]() | ProcessDialogChar | Processes a dialog character. |
![]() ![]() | ProcessDialogKey | Processes a dialog key. |
![]() ![]() | ProcessKeyEventArgs | Processes a key message and generates the appropriate control events. |
![]() ![]() | ProcessKeyMessage | Processes a keyboard message. |
![]() ![]() | ProcessKeyPreview | Previews a keyboard message. |
![]() ![]() | ProcessMnemonic | Processes a mnemonic character. |
![]() ![]() | RaiseDragEvent | Raises the appropriate drag event. |
![]() ![]() | RaiseKeyEvent | Raises the appropriate key event. |
![]() ![]() | RaiseMouseEvent | Raises the appropriate mouse event. |
![]() ![]() | RaisePaintEvent | Raises the appropriate paint event. |
![]() ![]() | RecreateHandle | Forces the re-creation of the handle for the control. |
![]() ![]() | RectangleToClient | Computes the size and location of the specified screen rectangle in client coordinates. |
![]() ![]() | RectangleToScreen | Computes the size and location of the specified client rectangle in screen coordinates. |
![]() ![]() ![]() | ReferenceEquals | Determines whether the specified Object instances are the same instance. |
![]() ![]() ![]() | ReflectMessage | Reflects the specified message to the control that is bound to the specified handle. |
![]() ![]() | Refresh | Forces the control to invalidate its client area and immediately redraw itself and any child controls. |
![]() ![]() | RescaleConstantsForDpi | Provides constants for rescaling the control when a DPI change occurs. |
![]() | ResetBackColor | Resets the background color to its default. |
![]() ![]() | ResetBindings | Causes a control bound to the BindingSource to reread all the items in the list and refresh their displayed values. |
![]() ![]() | ResetCursor | Resets the Cursor property to its default value. |
![]() ![]() | ResetFont | Resets the Font property to its default value. |
![]() | ResetForeColor | Resets the color of the input to its default. |
![]() ![]() | ResetImeMode | Resets the ImeMode property to its default value. |
![]() ![]() | ResetMouseEventArgs | Resets the control to handle the MouseLeave event. |
![]() ![]() | ResetRightToLeft | Resets the RightToLeft property to its default value. |
![]() | ResetText | Resets the contents to an empty control. |
![]() ![]() | ResumeLayout | Resumes usual layout logic. |
![]() ![]() | RtlTranslateAlignment | Converts the specified ContentAlignment to the appropriate ContentAlignment to support right-to-left text. |
![]() ![]() | RtlTranslateContent | Converts the specified ContentAlignment to the appropriate ContentAlignment to support right-to-left text. |
![]() ![]() | RtlTranslateHorizontal | Converts the specified HorizontalAlignment to the appropriate HorizontalAlignment to support right-to-left text. |
![]() ![]() | RtlTranslateLeftRight | Converts the specified LeftRightAlignment to the appropriate LeftRightAlignment to support right-to-left text. |
![]() ![]() | SaveComponentSettings | Internal use only. Saves the component settings. |
![]() ![]() | Scale | Scales the control and all child controls by the specified scaling factor. |
![]() ![]() | ScaleBitmapLogicalToDevice | Scales a logical bitmap value to it's equivalent device unit value when a DPI change occurs. |
![]() ![]() | ScaleControl | Scales a control's location, size, padding and margin. |
![]() ![]() | ScaleCore | This method is not relevant for this class. |
![]() | ScrollToCaret | Scrolls the contents so the caret is visible. |
![]() | Select | Selects a range of positions. |
![]() | SelectAll | Selects all of the contents. |
![]() ![]() | SelectNextControl | Activates the next control. |
![]() ![]() | SendToBack | Sends the control to the back of the z-order. |
![]() ![]() | SetAutoSizeMode | Sets a value indicating how a control will behave when its AutoSize property is enabled. |
![]() ![]() | SetBounds | Sets the bounds of the control to the specified location and size. |
![]() | SetBoundsCore | Performs the work of setting the bounds of the control. |
![]() ![]() | SetClientSizeCore | Sets the size of the client area of the control. |
![]() ![]() | SetContents | Loads the properties of a control from an XML document. |
![]() ![]() | SetStyle | Sets a specified ControlStyles flag to either true or false. |
![]() ![]() | SetTopLevel | Sets the control as the top-level control. |
![]() ![]() | SetVisibleCore | Sets the control to the specified visible state. |
![]() ![]() | Show | Displays the control to the user. |
![]() ![]() | SizeFromClientSize | Determines the size of the entire control from the height and width of its client area. |
![]() | SpinDown | Decreases the numeric field containing the caret, as the down button does. |
![]() | SpinUp | Increases the numeric field containing the caret, as the up button does. |
![]() ![]() | SuspendLayout | Temporarily suspends the layout logic for the control. |
![]() ![]() | ToString | Returns a String containing the name of the Component, if any. This method should not be overridden. |
![]() | Undo | Undoes the most recent change made by the user; up to 16 changes can be undone. |
![]() ![]() | Update | Causes the control to redraw the invalidated regions within its client area. |
![]() ![]() | UpdateBounds | Updates the bounds of the control with the current size and location. |
![]() ![]() | UpdateStyles | Forces the assigned styles to be reapplied to the control. |
![]() ![]() | UpdateZOrder | Updates the control in its parent's z-order. |
![]() | ValidateContents | Validates the contents and raises the SftMask.ValidationError event if they are not valid. |
![]() | ValidateText | Converts the contents to the SftMask.ValidatingType and raises the SftMask.TypeValidationCompleted event. |
![]() | WndProc | Processes Windows messages. |
![]() | AutoCompleteAccept | Occurs when the user selects an entry of the autocomplete list. |
![]() | AutoCompleteAddCustomItems | Occurs when the autocomplete list is built, so the application can add custom entries. |
![]() | AutoCompleteCustom | Occurs when the user selects a custom entry of the autocomplete list. |
![]() | AutoCompleteMatching | Occurs for each entry the autocomplete feature considers. |
![]() ![]() | AutoSizeChanged | This event is not relevant for this class. |
![]() ![]() | BackColorChanged | Occurs when the value of the BackColor property changes. |
![]() ![]() | BackgroundImageChanged | Occurs when the value of the BackgroundImage property changes. |
![]() ![]() | BackgroundImageLayoutChanged | Occurs when the BackgroundImageLayout property changes. |
![]() ![]() | BindingContextChanged | Occurs when the value of the BindingContext property changes. |
![]() | CalculatorKeyDown | Occurs when a key is pressed in the calculator. |
![]() | CalculatorKeyPress | Occurs when a character is typed in the calculator. |
![]() | CalculatorKeyUp | Occurs when a key is released in the calculator. |
![]() | CalculatorOpening | Occurs when an operator typed in a numeric field with a calculator is about to open the calculator. |
![]() ![]() | CausesValidationChanged | Occurs when the value of the CausesValidation property changes. |
![]() ![]() | ChangeUICues | Occurs when the focus or keyboard user interface (UI) cues change. |
![]() ![]() | Click | Occurs when the control is clicked. |
![]() ![]() | ClientSizeChanged | Occurs when the value of the ClientSize property changes. |
![]() ![]() | ContextMenuChanged | Occurs when the value of the ContextMenu property changes. |
![]() ![]() | ContextMenuStripChanged | Occurs when the value of the ContextMenuStrip property changes. |
![]() ![]() | ControlAdded | Occurs when a new control is added to the ControlCollection. |
![]() ![]() | ControlRemoved | Occurs when a control is removed from the ControlCollection. |
![]() ![]() | CursorChanged | Occurs when the value of the Cursor property changes. |
![]() | CustomValidation | Occurs when the contents are validated, after the mask's own checks passed; setting Cancel makes them not valid. |
![]() ![]() | DarkModeChanged | Occurs when the control switches between light and dark mode colors. |
![]() ![]() | Disposed | Occurs when the component is disposed by a call to the Dispose method. |
![]() ![]() | DockChanged | Occurs when the value of the Dock property changes. |
![]() ![]() | DoubleClick | Occurs when the control is double-clicked. |
![]() ![]() | DpiChangedAfterParent | Occurs when the DPI setting for a control is changed programmatically after the DPI of its parent control or form has changed. |
![]() ![]() | DpiChangedBeforeParent | Occurs when the DPI setting for a control is changed programmatically before a DPI change event for its parent control or form has occurred. |
![]() ![]() | DragDrop | Occurs when a drag-and-drop operation is completed. |
![]() ![]() | DragEnter | Occurs when an object is dragged into the control's bounds. |
![]() ![]() | DragLeave | Occurs when an object is dragged out of the control's bounds. |
![]() ![]() | DragOver | Occurs when an object is dragged over the control's bounds. |
![]() | DragStarting | Occurs when the mouse button is pressed on the selected text and SftMask.DragMode is DragModeEnum.Manual. |
![]() | DropDownClosed | Occurs when the calculator or the autocomplete list closes. |
![]() | DropDownOpened | Occurs when the calculator or the autocomplete list opens. |
![]() | EllipseClick | Occurs when the ellipse button is clicked or Alt+Down is pressed. |
![]() ![]() | EnabledChanged | Occurs when the Enabled property value has changed. |
![]() ![]() | Enter | Occurs when the control is entered. |
![]() ![]() | FontChanged | Occurs when the Font property value changes. |
![]() ![]() | ForeColorChanged | Occurs when the ForeColor property value changes. |
![]() ![]() | GiveFeedback | Occurs during a drag operation. |
![]() ![]() | GotFocus | Occurs when the control receives focus. |
![]() ![]() | HandleCreated | Occurs when a handle is created for the control. |
![]() ![]() | HandleDestroyed | Occurs when the control's handle is in the process of being destroyed. |
![]() ![]() | HelpRequested | Occurs when the user requests help for a control. |
![]() ![]() | HighContrastChanged | Occurs when the control switches between its own colors and the colors of the Windows contrast theme. |
![]() ![]() | ImeModeChanged | Occurs when the ImeMode property has changed. |
![]() | InputModeChanged | Occurs when the control switches between insert and overtype mode. |
![]() | InputRejected | Occurs when a typed, pasted or set character does not fit the mask, or when a deletion is not possible. |
![]() ![]() | Invalidated | Occurs when a control's display requires redrawing. |
![]() ![]() | KeyDown | Occurs when a key is pressed while the control has focus. |
![]() ![]() | KeyPress | Occurs when a character. space or backspace key is pressed while the control has focus. |
![]() ![]() | KeyUp | Occurs when a key is released while the control has focus. |
![]() ![]() | Layout | Occurs when a control should reposition its child controls. |
![]() ![]() | Leave | Occurs when the input focus leaves the control. |
![]() ![]() | LocationChanged | Occurs when the Location property value has changed. |
![]() ![]() | LostFocus | Occurs when the control loses focus. |
![]() ![]() | MarginChanged | Occurs when the control's margin changes. |
![]() | MaskChanged | Occurs when the SftMask.Mask property changes. |
![]() | ModifiedChanged | Occurs when the SftMask.Modified property changes. |
![]() ![]() | MouseCaptureChanged | Occurs when the control loses mouse capture. |
![]() ![]() | MouseClick | Occurs when the control is clicked by the mouse. |
![]() ![]() | MouseDoubleClick | Occurs when the control is double clicked by the mouse. |
![]() ![]() | MouseDown | Occurs when the mouse pointer is over the control and a mouse button is pressed. |
![]() ![]() | MouseEnter | Occurs when the mouse pointer enters the control. |
![]() ![]() | MouseHover | Occurs when the mouse pointer rests on the control. |
![]() ![]() | MouseLeave | Occurs when the mouse pointer leaves the control. |
![]() ![]() | MouseMove | Occurs when the mouse pointer is moved over the control. |
![]() ![]() | MouseUp | Occurs when the mouse pointer is over the control and a mouse button is released. |
![]() ![]() | MouseWheel | Occurs when the mouse wheel moves while the control has focus. |
![]() ![]() | Move | Occurs when the control is moved. |
![]() ![]() | PaddingChanged | Occurs when the control's padding changes. |
![]() ![]() | Paint | Occurs when the control is redrawn. |
![]() ![]() | ParentChanged | Occurs when the Parent property value changes. |
![]() | PrePaste | Occurs before a text is pasted; the handler can change or cancel the text. |
![]() ![]() | PreviewKeyDown | Occurs before the KeyDown event when a key is pressed while focus is on this control. |
![]() ![]() | PropertyChanged | Occurs when a property of an object derived from SoftelvdmUserControl is modified. |
![]() ![]() | QueryAccessibilityHelp | Occurs when AccessibleObject is providing help to accessibility applications. |
![]() ![]() | QueryContinueDrag | Occurs during a drag-and-drop operation and enables the drag source to determine whether the drag-and-drop operation should be canceled. |
![]() ![]() | RegionChanged | Occurs when the value of the Region property changes. |
![]() ![]() | Resize | Occurs when the control is resized. |
![]() ![]() | RightToLeftChanged | Occurs when the RightToLeft property value changes. |
![]() ![]() | SizeChanged | Occurs when the Size property value changes. |
![]() ![]() | StyleChanged | Occurs when the control style changes. |
![]() ![]() | SystemColorsChanged | Occurs when the system colors change. |
![]() ![]() | TabIndexChanged | Occurs when the TabIndex property value changes. |
![]() ![]() | TabStopChanged | Occurs when the TabStop property value changes. |
![]() ![]() | TextChanged | Occurs when the Text property value changes. |
![]() | TextNoLiteralsChanged | Occurs when the SftMask.TextNoLiterals property changes. |
![]() | TextWithLiteralsChanged | Occurs when the SftMask.TextWithLiterals property changes. |
![]() | TypeValidationCompleted | Occurs after the control tried to convert its contents to the SftMask.ValidatingType. |
![]() | UpDownPress | Occurs when an up or down button is pressed or the Up or Down key is used in a numeric field with spinning. |
![]() | UpDownPressed | Occurs after an up or down press was handled. |
![]() ![]() | Validated | Occurs when the control is finished validating. |
![]() ![]() | Validating | Occurs when the control is validating. |
![]() | ValidationError | Occurs when the validation finds that the contents are not valid. |
![]() | ValueChanged | Occurs when the value of the first numeric field changes. |
![]() ![]() | VisibleChanged | Occurs when the Visible property value changes. |
using System.Windows.Forms;
using Softelvdm.SftMaskNET;
using Softelvdm.SftMaskNET.Controls;
namespace DemoSample {
public partial class Form1 : Form {
private SftMask[] fields;
public Form1() {
InitializeComponent();
fields = new SftMask[] { sftMaskPhone, sftMaskZip, sftMaskAmount, sftMaskPercent, sftMaskQuantity, sftMaskIP,
sftMaskColor, sftMaskKey, sftMaskPin, sftMaskCity, sftMaskFile };
sftMaskPhone.Text = "4079045200";
Imports System.Globalization
Imports Softelvdm.SftMaskNET
Imports Softelvdm.SftMaskNET.Controls
Public Class Form1
Private fields() As SftMask
Public Sub New()
InitializeComponent()
fields = New SftMask() {SftMaskPhone, SftMaskZip, SftMaskAmount, SftMaskPercent, SftMaskQuantity, SftMaskIP,
SftMaskColor, SftMaskKey, SftMaskPin, SftMaskCity, SftMaskFile}
SftMaskPhone.Text = "4079045200"
SftMaskZip.Text = "328011234"
SftMaskIP.Text = "192168001001"See Also Classes | SftMask/NET 3.0