Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 229
  • Last Modified:

VB 2005 Losing code

While working on a vb 2005 project all the controls and code disappeared and the only thing left on the .vb file were my comments. the undue button was disabled.
and I am receiving an error message stating the following
 
'Name InitializeComponent' is not declared.
and
Name 'components' is not declared
 
Is there any way to retrieve the controls and code?
Any help is appreciated

Thank you,
0
Kmeli
Asked:
Kmeli
  • 2
1 Solution
 
traxionCommented:
You didn't delete your designer file did you?
0
 
Bart-De-BalCommented:
If you have saved your form, you won't be able to retreive the controls.

What I do when it happens is: close the form WITHOUT SAVING, clean my solution and rebuild all...
If this doesn't help close and reopen Visual Studio.
0
 
KmeliAuthor Commented:
Tried Bart-De-Bal: response.. didn't work.
Answering traxion: No I don't think I deleted it.
0
 
traxionCommented:
This is a known bug from Microsoft:
http://support.microsoft.com/?id=822759

There is a hotfix available at the link above.

Cheers.

Dustin
0

Featured Post

Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now