Last active
December 1, 2023 11:42
-
-
Save pmalicki11/9e8f5db2071cdc7496cf640402589bc1 to your computer and use it in GitHub Desktop.
Hiding Tab
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections.Generic; | |
using System.Linq; | |
using Erp.UI.App.CustomerTracker; // or Erp.UI.App.CustomerEntry when in Customer entry form | |
using Infragistics.Win.UltraWinDock; | |
CustomerDock customerDock = (CustomerDock)csm.GetNativeControlReference("197d7d6d-2443-47c7-b8ef-aa6cd9a95267"); | |
DockableControlPane taxCertCustomerTab = customerDock.baseDockManager.ControlPanes | |
.Cast<DockableControlPane>() | |
.Where(x => x.TextTab == "Tax Certification") | |
.FirstOrDefault(); | |
taxCertCustomerTab.Close(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment