无法将MaskedTextBox控件添加到活动设计器

编程入门 行业动态 更新时间:2024-10-23 02:49:33
本文介绍了无法将MaskedTextBox控件添加到活动设计器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我在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控件添加到活动设计器

本文发布于:2023-11-06 13:40:47,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1563846.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:控件   MaskedTextBox

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!