Log in

View Full Version : Deleted My VB Project



sm321
02-06-2012, 09:40 AM
Well I didn't actually delete it, I moved it to my desktop, but the deleted it and I restored it from recycle bin and now it's not opening? :confused: Someone help.

Brandon
02-06-2012, 10:06 AM
Copy all the code from the .vb file.. create a new project, paste the code in..

sm321
02-06-2012, 10:09 AM
Copy all the code from the .vb file.. create a new project, paste the code in..

But will I get the design back because I can't remember which label was where?

Brandon
02-06-2012, 10:40 AM
But will I get the design back because I can't remember which label was where?

Uhh I cannot remember the VB Structure of a project off the top of my head but if you get a stack overflow error when trying to view the designer/form then just drag back the other files 1 by 1.. if that doesn't work just wait till I get to a computer in like 4-5 hrs.. atm I'm on my iPhone. In C# you needa copy the program.cs and the form.cs.. C++ all that's needed is the form.cpp.. Not so sure about vb if you need more than one. You can usually tell by looking at the source.. if it has all the classes and the constructor/destructor for your form at the very top then you don't need more than one.. but if its not there then you definitely need to look through the files to find which ones have it.. then copy the form.vb + the contructorfile.vb.

Or maybe someone can help you till then.

sm321
02-06-2012, 10:44 AM
Uhh I cannot remember the VB Structure of a project off the top of my head but if you get a stack overflow error when trying to view the designer/form then just drag back the other files 1 by 1.. if that doesn't work just wait till I get to a computer in like 4-5 hrs.. atm I'm on my iPhone. In C# you needa copy the program.cs and the form.cs.. C++ all that's needed is the form.cpp.. Not so sure about vb if you need more than one. You can usually tell by looking at the source.. if it has all the classes and the constructor/destructor for your form at the very top then you don't need more than one.. but if its not there then you definitely need to look through the files to find which ones have it.. then copy the form.vb + the contructorfile.vb.

Or maybe someone can help you till then.

Thanks, I've just made another one now. Thanks anyway :)