I am writting my first Add-In with VS 2008, Arcmap 2011 and created a data entry form with a dockable window.
I would like to know: - how to close a dockable window, by default it looks like it hides, sho when clicking again the button it shows the form but its content does not get refershed - my form read the selected features from a layer and displays a data entry form where the user enters only attributes. But if when users select another feature in the same layer how can I refresh my dockable window, to show the new ferature. What event? - is it better to use a regular windows form
You want to set up the layer's feature selection changed event (IFeatureLayerSelectionEvents) to let you know users made a selection change. In the event handler routine you would refresh the form with attributes from the new feature.