We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you two Citrix podcasts. Learn about 2020 trends and get answers to your biggest Citrix questions!Listen Now

x

Form design window is blank

pauldonson
pauldonson asked
on
Medium Priority
319 Views
Last Modified: 2008-03-17
I have a Windows Form in Visual Studio 2005, when I double click the form name in Solution Explorer it just opens a blank window instead of showing the form design. I haven't knowingly changed anything.

Does anyone know how I can get it back please?



Thanks.
Comment
Watch Question

Author

Commented:
I have just noticed that the icon next to it has changed from a form icon to a code icon. Hope this isn't too bad! It is a massive form (I do have a backup but I have made some changes since that so would like to fix the current one if possible)
Commented:
It sounds like your file is a class instead of form.  A simple way to fix it is to create a new windows form and cut the code from the class into the code-behind on the form.  

Is this a regular windows project?

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
CERTIFIED EXPERT
Most Valuable Expert 2012
Top Expert 2008
Commented:
Another way to change this is to open the .vbproj file with Notepad, and find the <Files> section, and change the 'SubType' from Code to Form.

Bob

Author

Commented:
That worked proten thank!

TheLearnedOne, your way sounds easier but I couldn't find the <Files> section in the vbproj file.

Author

Commented:
Hum, I said it worked! It recreated the form but when I compile the assembly I get the following message:

An error occurred creating the form. See Exception.InnerException for details.  The error is: Could not find any resources appropriate for the specified culture or the neutral culture.  Make sure "RecruiterProfessional.frmPeopleMaintenance.resources" was correctly embedded or linked into assembly "RecruiterProfessional" at compile time, or that all the satellite assemblies required are loadable and fully signed.


Any idea what is is talking about?
CERTIFIED EXPERT
Most Valuable Expert 2012
Top Expert 2008

Commented:
Is there a .resx file for the form?

Bob

Author

Commented:
Yes, it was the resx file was missing. Copied it from a backup. Thanks and adjusted the vbproj file. Thanks for that.

Any ideas how this happens? It has happened to me a few times now losing forms, in the past I have copied from a backup but that isn't always the most convenient option.
CERTIFIED EXPERT
Most Valuable Expert 2012
Top Expert 2008

Commented:
No, I have no idea.  It is a bug, but I haven't found the sequence of events, yet.

Bob
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.