locked
Can't add MaskedTextBox control to active designer RRS feed

  • Question

  • User-1135395456 posted

    Hi,

    I've got an ASP.net web application in Visual Studio Professional 2015, and I can't add the MaskedTextBox control to the Standard tab. I'm right-clicking on the 'Standard' header, and going to 'Choose Items', then checking the box for 'MaskedTextBox'. However, I am then getting the error: "The following controls were successfully added to the toolbox but are not enabled in the active designer". I originally had the target framework set to .NET Framework 4.6, but tried changing it to 4.5. Neither works.

    Thanks.

    Tuesday, November 28, 2017 10:15 AM

All replies

  • User991499041 posted

    Hi NewWebDev1978,

    I've got an ASP.net web application in Visual Studio Professional 2015, and I can't add the MaskedTextBox control to the Standard tab. I'm right-clicking on the 'Standard' header, and going to 'Choose Items', then checking the box for 'MaskedTextBox'. However, I am then getting the error: "The following controls were successfully added to the toolbox but are not enabled in the active designer". I originally had the target framework set to .NET Framework 4.6, but tried changing it to 4.5. Neither works.

    Welcome to ASP.NET Forums.

    The component isn't compatible with the current designer. That is exactly what the error message is saying. The designer will filter out components that are not valid for the current design surface. For example if you are on Winforms form and try to add a component designed for ASP.NET or WPF then it won't show them. Verify that the component you are adding is designed for the UI designer you're trying to add it to.

    Regards,

    zxj

    Wednesday, November 29, 2017 1:50 AM
  • User347430248 posted

    Hi NewWebDev197...,

    are you trying to add Windows Form "Masked Textbox Control" to Asp.net Web Application?

    if yes, then you cannot do it.

    you need to find other solution for this.

    you can use Ajax, Jquery, Telerik, etc. 

    solution using Telerik:

    RadMaskedTextBox - Telerik ASP.NET MaskedTextBox

    solution using JQuery Plugin:

    jQuery Mask Plugin

    solution using Ajax:

    AJAX Control ToolKit Masked Edit Tutorial Example in ASP.NET C#

    Regards

    Deepak

    Wednesday, November 29, 2017 7:11 AM