Programmatically Remove/Close catalog and search window from Arcmap

2130
3
03-06-2014 09:31 PM
kaustavroy
New Contributor
Dear friends
         is there any way to close catalog and search window Programmatically from the Arcmap.PLease guide me for this requirement

Thanks and regards
Deepak
0 Kudos
3 Replies
ThavitinaiduGulivindala
Occasional Contributor
Hi,
These are called Dockable windows. Below link will help if requirement is to hide/show the Catalog/Search windows. There is a sample code and you simply need to input proper GUID/ProgID for Catalog/Search windows.
http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#/IDockableWindow_Interfac...
0 Kudos
SanajyJadhav
Occasional Contributor II
Thavitinaidu,

Thanks for your help. I had the same requirement and I could fix it with your suggestion.

I am putting my findings here if anyone is interested.

The GUIDs of all dockable windows can be found in the registry at the following location.

HKEY_CURRENT_USER\Software\ESRI\Desktop10.2\ArcMap\DockingPaneLayouts\panestate\Pane...

And the code to remove the dockable window is as below.


                IDockableWindowManager docWinMgr = pApps as IDockableWindowManager;
                UIDClass pUID = new UIDClass();
                pUID.Value = GUIDValue;
                IDockableWindow pDocWindow = docWinMgr.GetDockableWindow(pUID);

                if (pDocWindow != null)
                {
                    pDocWindow.Show(false);
                }



Thanks,
S.
0 Kudos
kaustavroy
New Contributor
Thank you very much sunjay
0 Kudos