Unable to get the designer view window back using windows forms with Visual Studio 2010

后端 未结 15 1674
逝去的感伤
逝去的感伤 2020-12-20 11:08

I am in process of writing a C# Windows Forms application using Visual Studio Express 2010 ENU SP1. Further VS specifics are at the bottom of this post. I recently made so

15条回答
  •  佛祖请我去吃肉
    2020-12-20 11:59

    Just one more way to screw up the form designer - I had something like this:

    namespace MyProgram
    {
        public struct SomeStruct {
            int a,b;
        }
        public partial class Form1 : Form
        {
            public Form1()
            {
                InitializeComponent();
            }
        }
    }
    

    Turns out you can't put the SomeStruct definition there even though everything works fine and there were no errors. Once I moved it, I was able to see the designer view again.

提交回复
热议问题