Project somehow got hosed. help!

J. Scott Elblein

Well-known member
Joined
Dec 14, 2006
Messages
166
Location
Chicago
Programming Experience
10+
It started out when I had an image added to my project sitting in the main folder. I moved it to a sub folder, and suddenly I was getting tons of errors, but I wanted to keep things organized and leave the image in the new folder, so I would just hunt down and edit the necessary files.

Long story short, I got the whole thing running without errors again, however, none of the object in the form want to recognize the associated routines.

For example the btnStart_Click for the btnStart button Sub does nothing now, even though the button is still named the same, and the routine is there with the same name. Double clicking the button to take me to what it thinks is its Sub, will take me to this instead btnStart_Click_1.

All of the objects on my form do this now. *rips out hair*

Is there some easy way to edit a file in the project to straighten this out? Or do I have to basically redo the entire thing? This was so easy to do (the screw-up) that I have to figure all .net coders have run across this at some point, and am reallllllllly hoping for an easy fix. :)

Thanks :)
 
Oh my God, you are a life saver. :)

They somehow got removed on their own and weren't there anymore. I added them back and all is well again. I would of never known to do that.

Thanks a bazillion! :D

P.S. Another weird thing that happened during this, is some objects on the form disappeared, although in the properties list combobox, i can see and select them, but I see no way to delete them. Has this also ever happened to you?

I just re-added new ones, but I like to keep a tidy ****, and would like to (safely) remove them.
 
Well, it happened again. Does anyone know how to rebuild a resource file for a form?

I made the mistake of manually moving some image files to another folder, that were in the resource file, rather than edit the resource file itself, and I ended up having the objects on the form, but could not see them. So when I tried this:

http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=3200&lngWId=10

I ended up with absolutely no available form in designer mode. Everything is gone. Even when I place the original resx file back in the same folder.

TIA
 
Back
Top