I have a custom ArcCatalog application that I would like to have automatically switch to the Description Tab when the form opens. Does anyone know how to go about doing this?
Interesting question, never tried to program a change in the view.
I knocked together the following lines of VBA as proof of concept but the Activate method never works. Are there any ESRI developers that can explain what I have done wrong, does it even work?
Public Sub OpenDescription() Dim pUID As IUID Set pUID = New UID pUID.Value = "{B1DE27B1-D892-11D1-AA81-064342000000}" 'This is the Description Tab Dim pGXCat As IGxCatalog Dim pGxApp As IGxApplication Set pGxApp = Application Set pGXCat = pGxApp.Catalog Dim pGxViewContainer As IGxViewContainer Set pGxViewContainer = pGxApp Dim pGXView As IGxView Set pGXView = pGxViewContainer.FindView(pUID) pGXView.Activate pGxApp, pGXCat End Sub
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.