2
Answers

C# VS2008 "this document is opened by another project"

Sam

Sam

15y
7.5k
1

I have an application with several forms.
The application runs fine, with all forms, buttons, textboxes and combos running just as they should.
Major Problem: I lost the form designs. When I open a form file for design in the solution explorer, I get a new empty form (like a new design) , not the form I designed (the one running well in debug).
When I try right-click, open with, C-Sharp Form Editor (Default), I get the messge "this document is opened by another project", which is 100% incorrect.
The problem does not happen with the main form that I can open for design.
This problem could have been casued by careless renaming or moving files, which VS is extremely sensitive to.  
I tried the following:
1. Moved the folder to another computer and fresh run with another VS application - the same.
2. Re-named the files in question - the same.
I am desparate, as it looks like I will have to redo the whole graphics (Luckily I still have the algorithms!).  On the other hand, as it runs normally, the data may still be available somewhere.
Can anyone help? (I found a few (very few) comments about this on the net, but none seem to be a solution)
Sam .
Answers (2)
0
Sam

Sam

NA 157 0 15y

Sam,
Thanks for your good help intentions.
I somehow (not sure) managed to restore the files, but I'm not sure what I did.
I simply collected the files I believed should be in the project and made sure they all are in the right folder with the correct namespace, and the most important (i believe) was getting rid of repetitions.

I find the VS (I use Express) to be extremely (dangerously) sensitive to file handling and lacking good automatic file backup (I used to work with Borland Builder where each build saved full backup of previous builds).
I would nevertheless appreciate any good guidelines that will help me prevent such issues in the future.
Sam
0
Sam Hobbs

Sam Hobbs

NA 28.7k 1.3m 15y
Do you still need help?