I was able to figure out what changed within my control. At some point during the development of the TabPages, I changed the default CloseTabBehavior from Close to Hide. When doing this, it obviously changed which event was fired when clicking the X on the TabPage. Once I discoverd this was the case, I was able to move my verification code from the TabPageClosing event on the DockingTab object to the TabVisibleChanged event on the individual TabPages. I ended up just creating a generic routine that handled all of the individual tab events and wrote a simple class to determine the sender object.
↧