问题
Is this possible? I installed them, but they don't appear. Do I have to import them or something?
回答1:
Please, take a look: How use MS chart control with VS 2010?
I haven't tried it with VS2010, but I would assume the process for using it is exactly the same as described there for other versions of VS. It won't appear in the tool box until you instal the add-ons
回答2:
If you cannot see the Chart control in the Toolbox, right click in the Toolbox, select Choose Items, and then select the following namespaces in the .NET Framekwork Components tab:
System.Web.UI.DataVisualization.Charting
System.Windows.Forms.DataVisualization.Charting
回答3:
According to this blog post from January 2010:
The Microsoft Chart Control is available as separate installation for .NET Framework 3.5 and will be included in .NET Framework 4.0.
It could be that the controls haven't been updated to work with VS2010 because of this. If they're not in the Beta 2 by default (I don't have it installed on this machine to check) then it might be that they're only going to be included in the full release.
回答4:
The Chart controls are included in version 4. Here's where you can find the types:
- ASP.NET: http://msdn.microsoft.com/en-us/library/system.web.ui.datavisualization.charting.aspx
- Winforms: http://msdn.microsoft.com/en-us/library/dd489065%28v=VS.100%29.aspx
来源:https://stackoverflow.com/questions/2043555/microsoft-chart-controls-in-visual-studio-2010