Reputation: 2180
well i got this and i'm not sure how to resolve it
Warning 1 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. 0 0
Upvotes: 1
Views: 3051
Reputation: 44384
You probably declared another class in your Form1.cs file. That class should be moved to its own file.
For example, this is bad:
using ...
namespace WindowsFormsApplication1
{
public class Foobar
{
...
}
public partial class Form1
{
...
}
}
In this example, Foobar
should be moved to a file called Foobar.cs.
Upvotes: 7
Reputation: 2785
You have another class declared above the Form1 class in your Form1.cs. Move the Form1 class above it...
Upvotes: 0