title: How can I match XNA with Windows Form in VS 2019?
body: <p>I'm trying to create a music player with an audio visualizer starting from a windows game project on VS 2019. To do so I created a custom display, draggable from the toolbox, in order to put it inside a form.</p>
  <p>From tutorials I've seen it is necessary to include three classes from <code>GraphicsDevice</code> and I've done it, but when I put them inside the code, the <code>Display</code> class does not inherit and VS does not recognize the keywords.</p>
  <p>To be precise <code>WinFormsGraphicsDevice</code> is marked as an error, and its methods as well.</p>
  <p>Does anybody have any hints about this?</p>
  <pre><code>using System;
  using System.Windows.Forms;
  using System.Collections.Generic;
  using System.Linq;
  using System.Text;
  
  namespace WindowsGame2.CustomControls
  {
      public class Display : WinFormsGraphicsDevice.GraphicsDeviceControl
      {
          protected override void Initialize()
          {
              
          }
  
          protected override void Draw()
          {
              GraphicsDevice.Clear();
          }
      }
  }
  </code></pre>