Chart tool is greyed out in Visual Studio

前端 未结 3 1717
孤独总比滥情好
孤独总比滥情好 2021-01-14 19:20

I\'m trying to add a chart to my Visual Studio form but the button is greyed out. I\'m using .NET Framework 3.5 and C#. Following instructions online I\'ve downloaded and in

3条回答
  •  隐瞒了意图╮
    2021-01-14 19:52

    To make the chart control available, you need:

    1. To be using .Net framework 4.0 or higher, OR for .Net framework 3.5 install this: http://www.microsoft.com/en-us/download/details.aspx?id=14422
    2. On the toolbox context menu -> Choose Items... have the Chart control selected. (Sort by name in the Choose Toolbox Items dialog and scroll to Chart. There are two: one for Windows forms, one for Web forms. You need only select what's relevant.)

    The chart control appears in the "Data" section of the Toolbox.

    You do NOT need to any any "using" clause to the form source file, or any reference in the project references. (The reference is added automatically for you when you add the control.)

提交回复
热议问题