Results 1 to 7 of 7

Thread: [RESOLVED] what happen to my IDE with picture.

Hybrid View

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Aug 2015
    Posts
    30

    Resolved [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.
    Name:  Untitled.jpg
Views: 213
Size:  15.4 KB

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    110,299

    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.

  3. #3
    Smooth Moperator techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,532

    Re: what happen to my IDE with picture.

    Two projects? Different folders? Photoshop?

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  4. #4
    Super Moderator Shaggy Hiker's Avatar
    Join Date
    Aug 2002
    Location
    Idaho
    Posts
    38,989

    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

  5. #5
    You don't want to know.
    Join Date
    Aug 2010
    Posts
    4,578

    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.

  6. #6

    Thread Starter
    Junior Member
    Join Date
    Aug 2015
    Posts
    30

    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 .

  7. #7
    You don't want to know.
    Join Date
    Aug 2010
    Posts
    4,578

    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
  •  



Click Here to Expand Forum to Full Width