Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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?

C#
  • *Experts*
Posted

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.

Posted

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.

C#
  • *Experts*
Posted

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.

Posted

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.

C#

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...