gsilvey,
The "Oh my god, what have I done method":
- Open your form in the Forms Designer
- Use Edit Select All to select all the controls
- Use Edit Delete to delete all the controls
- Use the toolbox to add all the controls you actually want
- Use the properties window to set the properties you actually want
Otherwise, there is no way to "rebuild" the code, as the code generated IS
your form design (the design is not stored any place else). There is
additional information on the design in the .resx file, however the bulk of
the form's design is the generated code itself.
Hope this helps
Jay
gsilvey said:
Is there a way to rebuild the code that is generated by the forms
designer? It compiles, but it seems to have controls left in it that I
previously removed using the designer. I'd like to just rebuild it all to
ensure it is clean and does not have unnecessary code in it. (The Rebuild
command does not do this.)