我在Visual Studio Professional 2015中有一个ASP Web应用程序,我无法将MaskedTextBox控件添加到Standard选项卡。我右键单击"标准"标题,然后转到"选择项目",然后选中"MaskedTextBox"框。但是,然后我收到错误:"以下控件已成功添加到工具箱但未在活动设计器中启用"。我最初将目标框架设置为.NET Framework 4.6,但尝试将其更改为4.5。两者都没有。
I've got an ASP 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.
谢谢。
推荐答案
嗨朋友,
欢迎来到MSDN论坛。
错误消息"以下控件已成功添加到工具箱但未在活动设计器中启用",这意味着此组件与当前设计器不兼容,请确保您当前的设计人员可以使用MaskedTextBox控制。
The error message "The following controls were successfully added to the toolbox but are not enabled in the active designer", it means this component isn't compatible with the current designer, please make sure your current designer can use the MaskedTextBox control.
请查看此文档: 如何:设置输入掩码和MaskedTextBox控件是一个Windows窗体控件而不是ASP.NET,这就是为什么你遇到上面的错误信息因为此控件不适用于Asp.NET应用程序。
Please check this doc: How to: Set the Input Mask and the MaskedTextBox control is a Windows Forms control not ASP.NET, that why you meet the above error message since this control is unavailable for Asp.NET application.
如果您仍想使用此控件或在Asp.NET应用程序中找到类似的控件,请重定向到此相应的论坛: forums.asp/ 并开始一个新的线程以获得更好的支持,我们的论坛是讨论VS IDE,谢谢你的理解。
If you still want to use this control or find a similar control in Asp.NET application, please redirect to this appropriate forum: forums.asp/ and start a new thread to get a better support, our forum is to discuss the VS IDE, thank you for your understanding.
祝你好运,
Sara
更多推荐
无法将MaskedTextBox控件添加到活动设计器
发布评论