Link to home
Start Free TrialLog in
Avatar of Lee W, MVP
Lee W, MVPFlag for United States of America

asked on

Visual Studio 2017 - Can't open forms!

Everything was going well... playing around with Visual Studio 2017 for the first time...

Had a weird problem (#1, but not really what the question is about where even though I set the Assembly Name and Root Namespace names, ApplicationName was still returning "WindowsApp1" when referenced... so I thought maybe it's building using that temp name when run from VS IDE.  So I compiled it into an app and deployed it.  Same result...

So I try re-opening the project - I can't open forms!  I can a new form, but when I try to open the main form, the only "main" reference I have is main.vb.  And when I open that, I don't have any code either!  I have one other form in the app and I can't open that either (but the code is visible).

I'd really like to continue this project but I need to see the forms!  HELP PLEASE!?!

(Classic Windows Forms app).
Avatar of Shaun Vermaak
Shaun Vermaak
Flag of Australia image

Check via Explorer, does the file have 0 byte size?  This sometimes happen to me and all I can recommend is backups and version control such as GIT or TFS
Avatar of Lee W, MVP

ASKER

Nope, no zero byte files.
Avatar of Arana (G.P.)
Arana (G.P.)

check the project file for references to the form (edit it) maybe you moved it or renamed it separate from the project, this causes a lot of headaches, you will have to make sure the form, the project file, and all other files that have to do with it have the same name.
Can you post the project/solution?
Been trying to upload for 30 mintues... EE doesn't like this file... then that file... then the other file... sheesh!

Not thrilled with this... but...
Problem.zip
So the Settings form came back... but the main form didn't.
ASKER CERTIFIED SOLUTION
Avatar of Ryan Chong
Ryan Chong
Flag of Singapore 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
Won't be on site to test until Friday.

I did actually recreate the project and the main form.  And now am doing a ridiculous number of manual backups (until I script something better) to ensure I don't lose things again.  Version control is a nice idea, but I don't the resources to implement right now.
SOLUTION
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

Honestly, this is so old and the attempt at the project long dead… I selected the two most likely answers… as I've kept in mind what they've said and not seen the problem again.