cant add chart reference using Visual Studio 2022

james kain 1 Reputation point
2023-01-06T14:35:30.567+00:00

I was using VS 2017 and it was easy to add a chart control to a form.
You added a reference to the System.Windows.Forms and the chart seemed to come along.
With VS2022 this isnt the case.
I attempt to add the reference (COM) checking the forms box and the dialog just returns w/o adding the reference.
Any thoughts on what has changed?
Jim

Developer technologies | Windows Forms
{count} votes

1 answer

Sort by: Most helpful
  1. Castorix31 91,506 Reputation points
    2023-01-09T06:52:47.93+00:00

    Like in some other threads, you probably selected a .NET project, instead of .NET Framework project :

    277342-netframework-template.jpg

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.