Skip to content

MaskedTextBox.Mask: Optional characters not allowed #1777

Description

@JuliaVasileva

Hi,
I've been trying to create Mask for MaskedTextBox and faced a problem with optional characters.

The control seems to treat optional digits as mandatory.

Specifically:

Mask="N #90°" - where the 2 digits before the degree symbol are optional

However, values such as N 8° or N 12° are not valid

To make it valid, I need to input values with additional spaces like 'N 3°'

image

Hot to allow users to input values of different lengths without requiring additional spaces?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions