OldDew
OldDew

Reputation: 67

How can I make the design view correspond with InitializeComponent code?

I have imported a form from another project. If I run the program, everything corresponds with the code. The design view, however, looks like a blank form. Can I refresh the design view so that it shows the components initialized in my InitializeComponent() method?

Upvotes: 0

Views: 68

Answers (1)

BiSaM
BiSaM

Reputation: 293

Maybe you are missing some references? I had a similar issue, but not with copy paste. I redesigned my design view and anyhow visual stuio lost some code in the designer file and therefore no controls and designed controls were visible anymore. So I had to redsign the form and copy the working code into it.

At least, it is not good to copy and paste a whole project. Design your own forms and only put the source code into it.

Upvotes: 1

Related Questions