Private m_UC As HER_AddIn.ucTextBox = New HER_AddIn.ucTextBox
Public ReadOnly Property hWnd As Integer Implements ESRI.ArcGIS.SystemUI.IToolControl.hWnd Get Return m_UC.Handle.ToInt32 End Get End Property
I am attempting to do the same thing you are, however instead of a textbox I want to have an image appear on the toolbar (not like a button or tool image though).
Here's what my legacy COM extension I am trying to turn into an add-in looks like:
In the COM extension I had the image in an image container in the UserControl. So yeah, basically the same as your textbox.
Have you made any progress or found any solutions/workarounds Duncan Hornby?
Hi Samuel,
My solution was to give up! I was surprised no one from ESRI offered up an answer even if it was "you are an idiot you are doing it the wrong way" or "no can't be done"
I abandon the Textbox and created a dockable window which was something that I could display a textbox on and hook into. So it was a radical change from the previous interface.
I think the AddIn framework is great but I came to the conclusion (which may be completely wrong) that you can't add controls that are not part of the AddIn framework as there seemed to no mechanism to declare them in the Config file.
Duncan