Error:-Visual Studio cannot open a designer for the file because the class within it

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • davidson1
    New Member
    • Feb 2008
    • 144

    Error:-Visual Studio cannot open a designer for the file because the class within it

    Hai friends i get the following error....

    Visual Studio cannot open a designer for the file because the class within it does not inherit from a class that can be visually designed
    when I open my project....

    Any Idea for correction..... ....very urgent...what i have to do.....

    Davidson

    10 March 2008
  • Plater
    Recognized Expert Expert
    • Apr 2007
    • 7872

    #2
    Stop changing the code that the designer tells you not to.
    When you open the file as text what does it say?
    Your class must inherit (in some fashion) from Control. Be it UserControl or just Control, or one of the classes that inherit from that themselves (like Form)

    Comment

    Working...