I know this error is saying that it cannot find a key name that I have created. However, I see the key name in my properties for the toolbar and it matches how I have it in the code. The funny thing is that I can refer to the toolbar button by its number.
Here is the line of code that is getting the error:
_testEntryForm.TestEntryToolbar.Tools(TestEntryBase.FIND_MOLD_TEXT_BUTTON_TOOL_KEY).SharedProps.Visible = True
Here is the definition of the constant TestEntryBase.FIND_MOLD_TEXT_BUTTON_TOOL_KEY:
Public Const FIND_MOLD_TEXT_BUTTON_TOOL_KEY As String = "FindMoldTextButton"
If I look at the properties of the "TestEntryToolbar" toolbar, I see: ->Tools: 59-FindMoldTextButton -> Key: FindMoldTextButton
Not sure what I am missing.
Thanks.
how can the tool get removed at runtime. I am having this problem also, with a set of tools I needed to rename. Is there a binary cache that is not getting updated when I change the key and caption values of the tool? I say this, because I have been fighting a problem with the old caption continuing to show, even though I have changed the properties in the tool.
Is it possible the tool is getting removed at run-time? If not, it could be a bug and I would recommend submitting a sample which reproduces the issue to the support group: http://ko.infragistics.com/gethelp.