TabWorkspace - Hide Tabs |
Post Reply |
Author | |
ianp
Moderator Group Joined: 19 December 2003 Location: United Kingdom Status: Offline Points: 119 |
Post Options
Thanks(0)
Posted: 06 March 2005 at 11:40am |
Is it possible to hide the tab workspace tabs when only one mdi child exists???
|
|
SuperMario
Admin Group Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
|
You can try adding something like this to the MDIChild form:
Private Sub Form_Load() Top = -200 Left = -200 Width = 31000 Height = 31000 Form_Resize fMainForm.DocumentCount = fMainForm.DocumentCount + 1 ShowTabWorkspace End Sub Private Sub Form_Unload(Cancel As Integer) fMainForm.DocumentCount = fMainForm.DocumentCount - 1 ShowTabWorkspace End Sub Private Sub ShowTabWorkspace() If fMainForm.DocumentCount = 1 Then fMainForm.CommandBars.ShowTabWorkspace (False) Else fMainForm.CommandBars.ShowTabWorkspace (True) End If End Sub Then add this to the MDI Form: Public DocumentCount As Long DocumentCount = 0 |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |