aewarnick Posted January 31, 2003 Posted January 31, 2003 I have had many instances where I save files as or move the source files and when I do I can open only the source files and cannot veiw the designer. Is it possible to veiw the design with just the source file? Quote C#
Moderators Robby Posted January 31, 2003 Moderators Posted January 31, 2003 VB and CS files are only single files, do you mean aspx and vb or cs files? Because you do need both. Quote Visit...Bassic Software
aewarnick Posted January 31, 2003 Author Posted January 31, 2003 I don't have aspx even for the running correctly programs. And I mean C#. Quote C#
*Experts* Volte Posted January 31, 2003 *Experts* Posted January 31, 2003 I believe you will need the resx file as well as the form (vb, cs). Click the 'Show All Files' button in the Toolbar and check to see if the form file has a little plus beside it, with a resx file under it when expanded. If it doesn't, you will have to make sure that yourForm.resx is in the same folder, and has the same name as your form. I don't know for sure if this is the cause, but it could very well be. Quote
aewarnick Posted January 31, 2003 Author Posted January 31, 2003 Yes, I do have those files and they are named the same and in the same folder. Before I would just double click on the sln file and it would bring up my project visually but now the cs files aren't even there. But the cs files are in the same folder as the sln file. I tried adding the cs files to the solution explorer but I still cannot go to (as I did before) veiw, Designer and see my project. Quote C#
Moderators Robby Posted January 31, 2003 Moderators Posted January 31, 2003 If the resx file was missing, it is re-created when you run the app. Maybe you're missing the original. Is this an asp application using C#? Quote Visit...Bassic Software
*Experts* Volte Posted January 31, 2003 *Experts* Posted January 31, 2003 What is the icon beside the form in the solution explorer? Is it a picture of a small page with the letters 'CS' written on it, or does it look like a little form? If it's a page, then the IDE is not recognizing the file as a Windows Form. Quote
aewarnick Posted January 31, 2003 Author Posted January 31, 2003 Got it fixed. They did not make that easy! In the right hand pane in the Solution Explorer I had to add a project (the csproj file) to the list. Then I had to add all the forms (cs files) individually as items. Then it worked. Quote C#
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.