Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
20
Key not found for UltraToolbar
posted

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.