Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 455051
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T22:19:54+00:00 2026-05-12T22:19:54+00:00

Does anybody know if it’s possible to open a pop-up form Input Mask which

  • 0

Does anybody know if it’s possible to open a pop-up form “Input Mask” which is displayed when you want to change Mask property of MaskedTextBox editor and you click on the details button on the right side of this property in design-time?

I’d like to use the same form in run-time in an application and use its result for mask string.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T22:19:55+00:00Added an answer on May 12, 2026 at 10:19 pm

    The dialog is defined in System.Design.dll, named “MaskDesignerDialog”. It is internal so you can’t use it directly. Reflection can bypass that. Try it out with a sample form, drop a Button and a MaskedTextBox on the form. Make the form’s code look like this:

    using System;
    using System.ComponentModel;
    using System.Drawing;
    using System.Windows.Forms;
    using System.Reflection;
    
    namespace WindowsFormsApplication1 {
        public partial class Form1 : Form {
            public Form1() {
                InitializeComponent();
            }
            private void button1_Click(object sender, EventArgs e) {
                Assembly asm = Assembly.Load("System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a");
                Type editor = asm.GetType("System.Windows.Forms.Design.MaskDesignerDialog");
                ConstructorInfo ci = editor.GetConstructor(new Type[] { typeof(MaskedTextBox), typeof(System.ComponentModel.Design.IHelpService) });
                Form dlg = ci.Invoke(new object[] { maskedTextBox1, null }) as Form;
                if (DialogResult.OK == dlg.ShowDialog(this)) {
                    PropertyInfo pi = editor.GetProperty("Mask");
                    maskedTextBox1.Mask = pi.GetValue(dlg, null) as string;
                }
            }
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Does anybody know of a javascript library for auto generating a form based upon
Does anybody know if it's possible to install Typo3 on PHP4? I've looked up
Does anybody know which,currently,is the best library for realizing a real time face-tracking solution
Does anybody know how to get rid of the annoying tooltips that pop up
Does anybody know if it is possible, and if so how to link to
Does anybody know true cross-platform C++ library for simulating keyboard input? I'd make a
Does anybody know if it's possible to put two lines of text in a
Does anybody know how to properly read from a file an input that looks
Does anybody know if it is possible to analyze the (wifi) network quality on
Does anybody know any way or any software which could decompile swf file to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.