Couldnot see design page of Form in windowapplication

Posted by Oswaldlily under Windows Forms on 5/24/2016 | Points: 10 | Views : 512 | Status : [Member] | Replies : 3
When I build my class, Im facing the error..
Form1.Dispose(bool) . No suitable method found to override

Shocked to see the design page giving me below error.
The designer could not be shown for this file because none of the class within it can be redesigned. The designer inspected the following classes in the file Form1. The base class System.object cannot be designed.

Also, When I see the Form.cs in folder, it is 0 KB.


There is no change I did..What could be the issue?




Responses

Posted by: A2H on: 5/24/2016 [Member] [MVP] Silver | Points: 25

Up
0
Down
By any chance have you renamed the file in your project. If so then ensure that the name of class in Form1 code behind and Form1 desgner page is same
Form1.cs
namespace WindowsFormApplication1
{
public partial class Form1 : Form


Form1.designer.cs

namespace WindowsFormApplication1
{
partial class Form4


Source URL : http://stackoverflow.com/questions/28838242/no-suitable-method-found-to-override

Thanks,
A2H
My Blog

Oswaldlily, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Oswaldlily on: 5/24/2016 [Member] Starter | Points: 25

Up
0
Down
File name has not been changed.
As u said, I checked for Form1.designer.cs. It is same like you mentioned.
But there is problem opening Form1.cs. Since this design & code page is blank.

Oswaldlily, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: A2H on: 5/25/2016 [Member] [MVP] Silver | Points: 25

Up
0
Down
looks like your project is corrupted. If it is not too much of a work. Then I would suggest to create a new project and start freshly from that.

Thanks,
A2H
My Blog

Oswaldlily, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response