无法将MaskedTextBox控件添加到活动设计器 [英] Can't add MaskedTextBox control to active designer

查看:111
本文介绍了无法将MaskedTextBox控件添加到活动设计器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Visual Studio Professional 2015中有一个ASP.net Web应用程序,我无法将MaskedTextBox控件添加到Standard选项卡。我右键单击"标准"标题,然后转到"选择项目",然后选中"MaskedTextBox"框。但是,
然后我收到错误:"以下控件已成功添加到工具箱但未在活动设计器中启用"。我最初将目标框架设置为.NET Framework 4.6,但尝试将其更改为4.5。两者都没有。

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.

谢谢。

推荐答案

< span lang ="EN"style ="font-family:'Calibri',sans-serif; font-size:11pt">嗨朋友,

欢迎来到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应用程序中找到类似的控件,请重定向到此相应的论坛:
https://forums.asp.net/ 并开始一个新的线程以获得更好的支持,我们的论坛是讨论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: https://forums.asp.net/ 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控件添加到活动设计器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆