Editing Windows Form Designer generated code

J

Jon Gabel

OK, I know your're not supposed to do this. But it would be very handy
to be able to edit Windows Form Designer generated code when
generating lots of similar objects. In Visual Studio 2005, I
duplicated several ToolStripMenuItems by editing code. This entails
adding code in several places. I can build the project ok but the
[Design] window doesn't show the new objects that I created in the
code window. Does anybody know how to make this work?

JG
 
B

Brendan Green

Are you sure you're adding the control to the forms Controls collection?
Usually this is the last step in the InitializeComponent() function.
 

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