Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6936765
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T12:16:34+00:00 2026-05-27T12:16:34+00:00

Hello i was wondering how can i import System.Windows.Forms in my asp.net class file?

  • 0

Hello i was wondering how can i import System.Windows.Forms in my asp.net class file?
It actualy marks it as error with no error suggestions.
Do i need to reference somewere?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T12:16:35+00:00Added an answer on May 27, 2026 at 12:16 pm

    You need to add a reference to the correct assembly to your project in Visual Studio before you can import the namespace.

    But I question whether this is a good idea. While it is possible to create instances of the windows forms classes and controls, you cannot add or show any of those controls with asp.net pages.

    Some of the Windows forms types have non-visual behavior features you may want to use, and so I have seen this done to good effect in the past. But even then, it’s usually a bad idea, as the Windows Forms controls are also memory hogs relative to the web and can hurt performance of your site. And remember that these controls still won’t keep their state across multiple http requests. There’s almost always a better way to do it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hello I was wondering how to get the starter template for asp.net mvc showing
Hello again ladies and gents! OK, following on from my other question on ASP.NET
Hello can anybody solve this please I'm creating the object in the action class
wondering how I can replace all special chars on my string like: hello this
I'm wondering when declaring: QStandardItem *baseItem = new QStandardItem(Hello); How can I get the
I am wondering how come I can reach inner class directly from outer type
Hello I am wondering how do you have an android app that can go
Hello I have something like div.find(input).autocomplete({ ..... and am wondering if I can add
Hello I am new to python and snmp and I was wondering how can
i'm following this tut http://developer.android.com/resources/tutorials/views/hello-listview.html and i was wondering how can i add the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.