# Using System.Windows; -\> SIMPLE Q!

**URL:** https://forum.kirupa.com/t/using-system-windows-simple-q/300680
**Category:** Uncategorized
**Created:** [November 25, 2009, 1:29pm UTC](https://forum.kirupa.com/t/using-system-windows-simple-q/300680 "2009-11-25T13:29:25Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![stephsh](https://avatars.discourse-cdn.com/v4/letter/s/49beb7/32.png) [@stephsh](https://forum.kirupa.com/u/stephsh)
#### Post date: [November 25, 2009, 1:29pm UTC](https://forum.kirupa.com/t/using-system-windows-simple-q/300680/1 "2009-11-25T13:29:25Z")

</div>

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:

```php

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;

```
