简体   繁体   English

带VS2010的.NET 3.5控制图

[英].NET 3.5 Control Charts w/ VS2010

I've been using .NET 4.0 C# Windows Form Application utilizing the chart controls to render a chart on my form. 我一直在使用.NET 4.0 C#Windows Form Application,利用图表控件在表单上呈现图表。 I've recently had to switch to .NET 3.5 to use a reference that doesn't support 4.0. 我最近不得不切换到.NET 3.5,以使用不支持4.0的引用。 Now, I can't use the chart controls for my application. 现在,我无法在应用程序中使用图表控件。 I've downloaded and installed the recommended packages: 我已经下载并安装了推荐的软件包:

Microsoft Chart Controls for Microsoft .NET Framework 3.5 http://www.microsoft.com/download/en/details.aspx?id=14422 Microsoft .NET Framework 3.5的Microsoft图表控件http://www.microsoft.com/download/en/details.aspx?id=14422

Microsoft Chart Controls Add-on for Microsoft Visual Studio 2008 http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=23903 适用于Microsoft Visual Studio 2008的Microsoft图表控件加载项http://www.microsoft.com/download/zh-cn/details.aspx?displaylang=en&id=23903

But my problem is that I am using Visual Studio 2010, the add-on is only for vs2008. 但是我的问题是我使用的是Visual Studio 2010,该加载项仅适用于vs2008。

I had to select 'Show All' on the toolbox in order to even see the chart option, but now it is disabled and when I attempt to click and drag I get a error icon as my mouse pointer. 我必须在工具箱上选择“全部显示”才能看到图表选项,但是现在它被禁用了,当我尝试单击并拖动时,我得到一个错误图标作为鼠标指针。 I tried to upload the image that shows the disabled chart, but SO wouldnt let me. 我试图上传显示禁用图表的图像,但是我不允许。

Is there any way that I can use the .Net 3.5 Chart Controls with VS2010? 我可以通过VS2010使用.Net 3.5图表控件吗?

Thanks, Bryan 谢谢,布莱恩

Microsoft included a new version with the 4.0 framework its called System.web.ui.Datavisualization. Microsoft在4.0框架中包含了一个新版本,称为System.web.ui.Datavisualization。 You just need to add the namespace in 2010. 您只需要在2010年添加名称空间即可。

http://allen-conway-dotnet.blogspot.com/2010/07/updating-microsoft-charting-controls.html http://allen-conway-dotnet.blogspot.com/2010/07/updating-microsoft-charting-controls.html

Hope that helps! 希望有帮助!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM