Windows 10: Visual Studio 2019 C# Windows Form .NET Frameworks CS0120

Discus and support Visual Studio 2019 C# Windows Form .NET Frameworks CS0120 in Windows 10 Installation and Upgrade to solve the problem; HI! I am trying to make an app, and i made i just how i like it, and I tried to Build it, and it gave me the code in the subject saying "An object... Discussion in 'Windows 10 Installation and Upgrade' started by GR33NW01F, Nov 26, 2020.

  1. GR33NW01F Win User

    Visual Studio 2019 C# Windows Form .NET Frameworks CS0120


    HI!

    I am trying to make an app, and i made i just how i like it, and I tried to Build it, and it gave me the code in the subject saying "An object reference is required for the non-static feild, method, or property. My script was perfect, even when I built it earlier, but the one last error in my script made it fail building. Here is the script Form1.Designer.cs


    "this.Load += new System.EventHandlerForm1.Form1_Load;"

    I did nothing to this script, and it is the one made by the visual studio. PLEASE HELPP!!

    :)
     
    GR33NW01F, Nov 26, 2020
    #1
  2. Amol S. Win User

    Visual Studio (.NET Framework)

    Do you still have the Visual Studio Installer or Visual Studio Manager still installed?

    If you have it still installed and it opens up correctly, you could try removing all additional packages that are installed, and try reinstalling them again. It could have been a corruption issue relating to package extensions that you may have installed
    into Visual Studio 2017 Community Edition. If that does not work, go to apps in settings, and select Visual Studio 2017 Community Edition and select repair. If that does not work, you could try going to TechNet, and asking there for help. It could be a
    bug with the current version of the .NET Framework 48 or with the recent version of Visual Studio 2017 Community Edition.

    If you can not find Visual Studio Installer or Visual Studio Manager, unfortunately in this situation the only thing I can think of is if you still have the installation file that you downloaded from the Visual Studio website. If you can't find that, then
    I suggest that you download Visual Studio 2019 Community Edition, since the 2017 Community edition is not given for free anymore unless you have some sort of subscription. However, I suggest that you still check with TechNet before taking this step.
     
    Amol S., Nov 26, 2020
    #2
  3. Perseides Win User
    Unable to install visual studio, required .net framework.


    I'm trying to install visual studio community 2015, however it has an error '.net framework required for setup'.
    Tried installing .net framework 4.5 but it is stated that 'Microsoft .NET Framework 4.5 is already a part of this operating system. You do not need to install the .NET Framework 4.5 redistributable.'

    Any suggestions? Thanks in advance.
     
    Perseides, Nov 26, 2020
    #3
  4. Brink Win User

    Visual Studio 2019 C# Windows Form .NET Frameworks CS0120

    New Visual Studio, Visual Studio for Mac, .NET Core and Xamarin.Forms

    Source: Microsoft Build 2018: New releases for Visual Studio, Visual Studio for Mac, .NET Core and Xamarin.Forms | The Visual Studio Blog
     
    Brink, Nov 26, 2020
    #4
Thema:

Visual Studio 2019 C# Windows Form .NET Frameworks CS0120

Loading...
  1. Visual Studio 2019 C# Windows Form .NET Frameworks CS0120 - Similar Threads - Visual Studio 2019

  2. VISUAL C++ REDISTRIBUTABLE FOR VISUAL STUDIO 2019

    in Windows 10 Gaming
    VISUAL C++ REDISTRIBUTABLE FOR VISUAL STUDIO 2019: i want to run a program which needs API-MS-WIN-CORE-SYSINFO-L1-2-1.DLL, which i'm told, is part of the above package.I get an error saying I cannot install it unless I uninstall the package for Visual Studio 2022Can I do this? Won't it disable the VS 2022?Thanks...
  3. VISUAL C++ REDISTRIBUTABLE FOR VISUAL STUDIO 2019

    in Windows 10 Software and Apps
    VISUAL C++ REDISTRIBUTABLE FOR VISUAL STUDIO 2019: i want to run a program which needs API-MS-WIN-CORE-SYSINFO-L1-2-1.DLL, which i'm told, is part of the above package.I get an error saying I cannot install it unless I uninstall the package for Visual Studio 2022Can I do this? Won't it disable the VS 2022?Thanks...
  4. Visual C++ Redistributable for Visual Studio 2019

    in Windows 10 Gaming
    Visual C++ Redistributable for Visual Studio 2019: I did a basic reset of my pc. It removed Microsoft Visual C++ 2019. I tried to reinstall, but it tells me there is a runtime error and that the old ver. can not be removed,...
  5. Visual C++ Redistributable for Visual Studio 2019

    in Windows 10 Software and Apps
    Visual C++ Redistributable for Visual Studio 2019: I did a basic reset of my pc. It removed Microsoft Visual C++ 2019. I tried to reinstall, but it tells me there is a runtime error and that the old ver. can not be removed,...
  6. Visual C++ Redistributable for Visual Studio 2019

    in Windows 10 BSOD Crashes and Debugging
    Visual C++ Redistributable for Visual Studio 2019: I did a basic reset of my pc. It removed Microsoft Visual C++ 2019. I tried to reinstall, but it tells me there is a runtime error and that the old ver. can not be removed,...
  7. Visual Studio & .Net Framework on Windows ARM

    in Windows 10 Gaming
    Visual Studio & .Net Framework on Windows ARM: Is it possible to use Visual Studio to create Windows Forms Applications so using the .Net Framework on Windows ARM?This is kind of urgent....Thank you in advance for any help!...
  8. Visual Studio & .Net Framework on Windows ARM

    in Windows 10 Software and Apps
    Visual Studio & .Net Framework on Windows ARM: Is it possible to use Visual Studio to create Windows Forms Applications so using the .Net Framework on Windows ARM?This is kind of urgent....Thank you in advance for any help!...
  9. Visual Studio (.NET Framework)

    in Windows 10 Installation and Upgrade
    Visual Studio (.NET Framework): I have the latest Framework 48 installed (along with the 48 runtime) on my Windows 10 desktop. Running Visual Studio 2017 Community. When I select a NEW PROJECT and specify (.NET Framework) -- I get a dialog box which reads: THIS TEMPLATE IS NOT PRESENT ON THE...
  10. Net framework and visual c++

    in Windows 10 Software and Apps
    Net framework and visual c++: I just install windows 10 to my laptop, do i need to install all NET Framework and M Visual C++ or it automatically installed when u install the window? 102399