Moved solution to new computer

A

AMP

Hello,
I moved a solution to another computer and some of my forms have lost
thier visual components.
The code is still in the designer and there are no errors in the
build.
Also, with those forms the .designer is not part of the .cs hierarchy
for that class, its just listed below it.
Any Help?
Thanks
 
M

Morten Wennevik [C# MVP]

Hi,

Did you change the namespace for those control, and forgot to change the
namespace in the designer file? In that case you should get a compiler
warning about InitializeComponent not being found. Since you aren't getting
any build error check that there isn't a duplicate and empty
InitializeComponent-method in the code file somewhere.

In any case, if you do have the designer files there, you should be able to
reattach them to the controls.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top