error code
-
when I build my project it's goes well and run correctly but when I run it once more ,I get This error 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 Can anybody help me with this I Redesign My project two times but it's not helping
-
when I build my project it's goes well and run correctly but when I run it once more ,I get This error 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 Can anybody help me with this I Redesign My project two times but it's not helping
Probably you've added another class to the
Form1.cs
file above theForm1
class declaration. Either move the other class to a separatecs
file (better for readability) or move theForm1
class as topmost in the file. Then refresh the designer and everything should be back to normal.2A
-
Probably you've added another class to the
Form1.cs
file above theForm1
class declaration. Either move the other class to a separatecs
file (better for readability) or move theForm1
class as topmost in the file. Then refresh the designer and everything should be back to normal.2A