Vb.net project save not opening from anywhere by its original source - vb.net

I've made a program for my assingment, and code it entirely from home. Obviously I need to submit it and work on it from college, i've got about 13 hours until it's due and I cannot for the life of me figure out what these errors mean, I'm guessing its something to do with the paths of the files. To make it clear, the program does not open and it is not the original copy. I do have other copies and I have tried the same approach with the exact same luck. Thank you in advance.
Okay, an update. As I said, I copied it from home, and pasted it in the folder location that it is calling below, however, it's calling an older version of the game which has no relevence to the game(number guessing game), from a location two files up from the actual vb files. Is there a way i can change what the project opens?

In your second picture just drag 'Form1.vb' to the solution Explorer. That way it can recognize your form. I have encountered this problem before and I just did what I said above.

Related

Texmaker: Is there a way to compile main.tex eventhough some child-texfile is opened in the editor?

The main.tex file in my project is the one to be opened in editor view in order to successfully compile the pdf-document. It has several child-files like e.g. content.tex where I write the actual thesis text.
Every time I want to compile the document in order to view the changes I have to change the editor-file to main.tex. Otherwise the process ends with errors.
I already tried the Ctrl+0 base file setting, but it did not show any changes.
The LaTeX project is based on a template provided by my university and though has to stay untouched in regards of the project structure itself (why so ever...).
I managed to do as I strived to. Don't know whether I'd just been too clumsy or if it relates to the problems I faced during the \input{...} integration, but if anyone wonders how to do so too:
It in fact has been the way I already tried - set the main-document to master-document.
Nevertheless I switched to use TexStudio meanwhile.
Thank you for your response #Gowachin

The source file is different from when the module was built?

Mediocre VB.Net student here, but not a total noob. I've been getting this error: "The source file is different from when the module was built. Would you like the debugger to use it anyway?"
I chose Form1.vb on the "Find Source: Form1.vb" open file dialog box that followed. After that, my program has been acting very weirdly. For example, I have codes inside the sub that handles Button1 click, and then I moved those codes somewhere. Now when debugging, when I click that button, it executes the codes that I just removed a minute ago!
I'm scared because I don't to waste the 2 months of hard work that I've already spent on this project. Too friggin stupid to remember to backup the whole thing. Stackoverflow, please don't fail me now.
As you have explained i think the scenario is your modified code is not build correctly.. once rebuild the entire solution.
Please be sure work in debug mode, and then try Clean solution and then "Rebuild All".
refer following links may also help you..
the source file is different from when the module was built
Warning given when debugging source code in visual studio 2010

Xcode code folding issue

After updating Xcode(5.0.1),one of my project files is automatically unfolding the code every time i leave the file or close Xcode.And this weird behavior is bothering me a lot,i already tried to delete and recreate it but didn't worked.
Anyone knows what might be causing this single file to have its code unfolded?
With Xcode-9, this issue is resolved. Code folding is being remembered and saved by Xcode 9 Editor.
Code you have/had folded exact before last source build/save, is automatically stored upon document/file closure. And same will be visible as it was (folded) when you will open document/file next time.
You don't need to do anything (there is no any option in Xcode tool bar to enable or disable) to save your code fold.
There's no way around it. xCode will unfold your code automatically. Period. There is no option to "preserve" code folding. (sad, but true...)

Why am I getting this error? Visual Basic 2010

I accidentally uploaded an image to "My resources" which had the same name as another image in my resources and since then VB is showing up over 100 errors, but I don't know what I can do to resolve it and restore the program?
It's a very large program that I have been working on for months and really don't want to have to restart!
I have looked online and even found posts on here, but it doesn't work.
I have deleted the repeating image name, in my resources, but still doesn't resolve it. Whenever I go onto "My Project" > "Resources" it comes up with "There is already another resource with the name "Back_button."
But I removed it?
This is the error that comes up for all of the images/items that were in my resources:
"Beach_Text" is not a member of 'Top_of_the_Class.My.Resources'.
I also have a warning:
The designer cannot process the code at line 74: Me.btnInstructions.Image = Global.Top_of_the_Class.My.Resources.Resources.Instructions_button
The code within the method 'InitializeComponent' is generated by the designer and should not be manually modified. Please remove any changes and try opening the designer again.
I hope this makes sense and I know others have asked similar questions, but I have tried them methods. I just want my program back :(
Many thanks.
I had the same problem. I didn't wanted to restart my whole program and also I didn't used version control. If I went to the resources tab there was an error saying: There is already another resource with the name "Donkey_Kong". I pressed on ctrl-shift-F and searched for Donkey_kong and deleted every posible resource and code with the name Donkey_Kong in it. After I did that the error dissapeared and it was solved.
I had a picture with the name Donkey_Kong and a sound file with the name Donkey_Kong. Changed the names and continued :)
I had the same problem ("There is already another resource with the name "Salary")
Removed two lines of codes with the same resource name and
I went to Project--->Properties of my project--> went to resources tab and DELETED all files/images... with the same name "Salary" and the problem was fixed (All my codes were still there)

How in the earth my aplication is still running even when the appdelegate and main.m is missing

I restore the apps from time machine.
The app run just fine.
However, when I check the project, my appDelegate is gone. I can't see the file in the editor. It becomes red.
What is going on?
The files are still in finder though.
Restarting xcode doesn't work. Removing and adding files is kind of risky, though I'll give it a try tomorrow.
Maybe xcode just "forget" where the file is. But I get my app compiled.
Note: The problem is solved. Restarting iMac works. It's one of those get fixed by it self eventually. However, if someone can explain why the hell this happened in the first place it'll be great.
Check the target's Build Phases. The files being compiled can be shown in Finder using a context menu.
u can do a dirty move trick in deleting and re-adding ur file into Xcode. They'be correctly added into the build phase as well.
Deleting the reference is not risky because the references are lost. If you do a clean project, you may have a compiler build error.
U just has to drop again ur already added file into your Xcode project, but don't check "Copy items into destination group's folder" since your files are already included in your folder.
This happening to me lot of time when i'm using svn.
All those are good answer. I restarted iMac and things work fine.
I think this has happened several times. It's one of those fixed by itself problem eventually. This one it ticked me off that I asked question.
I still do not understand why it actually happens. So I'll wait for more people to answer this.