I know it's not recommended, but I often go into the windows-generated code to add new tools to my UltraToolbarsManager control. This works like a champ. However, I was wondering if there's a way to force VB to refactor the code after I've done this? My ButtonTool and Appearance variables really need to be renamed and refactoring everything would make this happen. Anybody know how this could be done? I've brought my form up in the designer, but that doesn't seem to force the code to refactor.
Hello,
You can force the designer code to reserialize by making a change on the design surface, such as resizing the form or changing its title. To ensure that your manually-added code is preserved, I would recommend closing and reopening the design view before doing this.
As you mentioned, manually editing designer code is not recommended. If at all possible, I would add code to the form's CS file instead of directly to the designer-generated code.
Please let me know if there is anything further I can do to assist you.
I tried changing the size of the form, the text and I even added a new group to the toolbarsmanager, but the manual code did not refactor. See the attached screen cap to see what I am talking about.