I am trying to specify the border on a panel I created in my C#/ASP.NET web project. I tried both to import and to use System.Windows.Forms but both generated an error. Other properties which I think also import System.Windows.Forms dont work either.
This is what my code looks like:
Panel pnSummary = new Panel();
pnSummary.BorderColor = System.Drawing.Color.Black;
pnSummary.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; // Generates error
pnSummary.Location = new Point(56, 72); // Generates error
pnSummary.AutoSize = true; // Generates error
pnSummary.Visible = true;