-
May 3rd, 2013, 11:16 AM
#1
Thread Starter
Addicted Member
[RESOLVED] Form Objects removed?
OK, I got a huge problem. I was adding some controls to a project of mine and I think I accidentally clicked 'Exclude from Project' on the folder that contained those custom user controls.
From there, clicking on my form's design view threw an error about my missing custom controls, I clicked Debug and Voila, my form became empty (went to the default form state) all the controls gone, which ruined my 3 month project.
Is there any way to set the form to how it was, or is the damage done, and it can't be recovered?
The controls still exist in the solution explorer when I click on my form, so I guess they are not totally deleted.
-
May 3rd, 2013, 12:03 PM
#2
Re: Form Objects removed?
The first thing to do is to include them back into the project with Include Existing (through Solution Explorer or the Project menu). However, that may not solve the problem, as it kind of sounds like the designer got rid of the errant stuff out of the form.designer.vb file, in which case you better have a backup. Still, the stuff may still be in the .designer.vb file, in which case re-including the objects may be all you need to do.
My usual boring signature: Nothing
-
May 3rd, 2013, 12:08 PM
#3
Re: Form Objects removed?
if you turn on the Show All Files option on the project in the Solution Explorer... you'll find your items, but they will be greyed out... right click them and select "Include in project" ... the controls may or may not be done completely from you form.,... look at the form's .designer.vb file ... see if the code tocreate and add the controls is still there... if so, you may still be OK.
-tg
-
May 3rd, 2013, 12:57 PM
#4
Thread Starter
Addicted Member
Re: Form Objects removed?
Yeah, the code was still there in the designer file as well. I got it fixed now, thanks both of you. Phew
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|