-
Jan 29th, 2018, 09:53 AM
#1
Thread Starter
Junior Member
[RESOLVED] what happen to my IDE with picture.
Hi everyone
as you can see in picture of my vb2010 IDE ,there are two Form1.vb Tab . does anyone know why?
thanks in advance.
-
Jan 29th, 2018, 10:06 AM
#2
Re: what happen to my IDE with picture.
Do they contain the same code? If so, I'd just close one or both and continue on as normal. It likely won't happen again but, if it does, you might need to repair or reinstall VS.
-
Jan 29th, 2018, 10:32 AM
#3
Re: what happen to my IDE with picture.
Two projects? Different folders? Photoshop?
-tg
-
Jan 29th, 2018, 10:46 AM
#4
Re: what happen to my IDE with picture.
You can easily do this if you open one project then open a file from some other project. VS doesn't care, it just shows files. Where they came from are up to you.
My usual boring signature: Nothing
-
Jan 29th, 2018, 11:34 AM
#5
Re: what happen to my IDE with picture.
If you hover your cursor over a tab, you'll see the full path to the file. Perhaps they are two different files with the same name.
There are ways to get multiple windows showing the same file (it's useful if you need to edit something while referencing a different part of the file), but at least in VB 2017 it tends to show the name like "Form1.vb:1" to help you understand there are multiple views of the same file available.
This answer is wrong. You should be using TableAdapter and Dictionaries instead.
-
Jan 29th, 2018, 12:20 PM
#6
Thread Starter
Junior Member
Re: what happen to my IDE with picture.
thanks everyone for their replies
If you hover your cursor over a tab, you'll see the full path to the file. Perhaps they are two different files with the same name.
yes ,each tab has different folder, and i don't know why and how to fix it.for more explanation,
actually ,the problem has been started when I copied and pasted my project folder in windows explorer . and then I opened the pasted folder and executed Sln file in it .
-
Jan 29th, 2018, 01:34 PM
#7
Re: what happen to my IDE with picture.
When you copied and pasted your solution, you made a new copy of the solution.
Part of a solution is your .vbproj file, which tells Visual Studio where the files that belong to the project are. It often uses "relative paths", which means if you copy and paste the folder somewhere else everything still works.
Another part of the solution is the "solution options" file, which I think is the .suo. This one has stuff like "what windows you had open" in it. It doesn't always use relative paths, for reasons.
So you made a copy of your project, pasted it, then opened that copy. The .vbproj is looking at the files in the new, copied location. But the .suo is still looking at files in the old, copied location.
Lesson learned: when working with a project on multiple computers, it's good for your sanity to start the day by closing all open windows.
This answer is wrong. You should be using TableAdapter and Dictionaries instead.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|