Link to home
Start Free TrialLog in
Avatar of jpmc_cmsops
jpmc_cmsopsFlag for United States of America

asked on

How to recover form Desgin???

I am developing an application in C#.

I opened my project and one of my forms is Blank.  The name of the form is Main Menu.  When I check the MainMenu.cs file, all the code is there.  When I check the MainMenu.designer file, all the code is there including the creation and layout of the controls.

However, the form is blank.  when I run the program, it comes up blank.  Is there any quick way to recover the design without having to re-draw the controls manaully?
Avatar of indianguru2
indianguru2
Flag of India image

Are you using any third party controls or user control
Are you using any third party controls or user control
Avatar of jpmc_cmsops

ASKER

No
Any Errors you get?
No Errors.  But I think i figured it out....  It appears that in the designer, all the code snippits that actaully add the controls to the form were missing.

I re-added that code   :this.controls.add (this.mycontrol)

What is weird, is some controls are added to group boxes and split containers and those items were still there, just the controls that were added directly to the form was missing...
ASKER CERTIFIED SOLUTION
Avatar of indianguru2
indianguru2
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial