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,
Is there anything further I can do to assist you with this issue?
Never mind
As far as I know, there's no way to force this to happen automatically. Two things that might work:
Is there a reason that you want the identifiers in the designer.cs to start from 1? I may be able to provide a better suggestion if I understood this requirement better.
I don't need them to be specific values. They are only specific values because I manually typed them. I want them to reset and start over from 1, so I don't have ButtonTool93335 anymore.
Hi Richard,
As far as I know, there is no guarantee that the numbers used for these identifiers will start from 1, nor that they will run sequentially. It is unusual that you need specific identifiers for these objects, since they are generated programmatically and are only in scope in the InitializeComponent method. Normally, it is not intended for the developer to need to use these objects directly.
Can you elaborate on this requirement? Also, is it possible to use another method to identify the objects such as keys, indices, or GUIDs?
Please let me know.