M mozaharul Active Member Licensed User May 29, 2008 #1 Hi all, I've some tabpages, depending upon condition of a control on the first tabpage is it possible to freeze/disable other tabpages ? regards,
Hi all, I've some tabpages, depending upon condition of a control on the first tabpage is it possible to freeze/disable other tabpages ? regards,
R Rioven Active Member Licensed User Longtime User May 29, 2008 #2 Hi mozaharul, You could try this... Sub tbc1_selectionchanged(Index,"") If tbc1.selectedindex=1 or ..other index..and..some other conditions.. Then tbc1.selectedindex=0 'go back to previous selected tab Msgbox("not allowed!'") End If End Sub Last edited: May 29, 2008
Hi mozaharul, You could try this... Sub tbc1_selectionchanged(Index,"") If tbc1.selectedindex=1 or ..other index..and..some other conditions.. Then tbc1.selectedindex=0 'go back to previous selected tab Msgbox("not allowed!'") End If End Sub