Editing Windows Form Designer generated code

  • Thread starter Thread starter Jon Gabel
  • Start date Start date
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
 
Are you sure you're adding the control to the forms Controls collection?
Usually this is the last step in the InitializeComponent() function.
 
Back
Top