I saved my project, but now I can't open it up in design view where you see all the buttons and stuff. Visual Studio 2012 Anyone know how?
相关问题
- How to know full paths to DLL's from .csproj f
- Importing NuGet references through a local project
- Visual Studio 2019 - error MSB8020: The build tool
- 'System.Threading.ThreadAbortException' in
- VS2017 RC - The following error occurred when tryi
相关文章
- How to show location of errors, references to memb
- How to track MongoDB requests from a console appli
- Visual Studio Hangs on Loading UI Library
- How to use Mercurial from Visual Studio 2010?
- What the logcat message: “E/MoreInfoHPW_ViewGroup(
- Copy different file to output directory for releas
- Edit & Continue doesn't work
- “Csc.exe” exited with code -1073741819
From the Solution Explorer window select your form, right-click, click on View Designer. Voila! The form should display.
I tried posting a couple screenshots, but this is my first post; therefore, I could not post any images.
My problem, it showed an error called "The class Form1 can be designed, but is not the first class in the file. Visual Studio requires that designers use the first class in the file. Move the class code so that it is the first class in the file and try loading the designer again. ". So I moved the Form class to the first one and it worked. :)
Click on the form in the Solution Explorer
You can double click directly on the .cs file representing your form in the Solution Explorer :
This will open
Form1.cs [Design]
, which contains the drag&drop controls.If you are directly in the code behind (The file named
Form1.cs
, without "[Design]"), you can press Shift + F7 (or only F7 depending on the project type) instead to open it.From the design view, you can switch back to the Code Behind by pressing F7.