Remove Minimize Maximize and Close From MDI Child |
Post Reply |
Author | |
CarlVaskman
Newbie Joined: 25 September 2020 Status: Offline Points: 2 |
Post Options
Thanks(0)
Posted: 25 September 2020 at 6:19pm |
How can I remove the minimize/maximize/close buttons in an MDI child form? I am using CodeJock Xtreme CommandBars ActiveX Control 17.3.0 I am trying to remove these with the following code. Private Sub Form_Load() Dim ToolBar As CommandBar Set ToolBar = CommandBars1.Add("Standard", xtpBarTop) CommandBars1.ActiveMenuBar.SetFlags xtpFlagHideMDIButtons, 0 CommandBars1.ActiveMenuBar.SetFlags xtpFlagHideClose, 0 CommandBars1.ActiveMenuBar.SetFlags xtpFlagHideMinimizeBox, 0 CommandBars1.ActiveMenuBar.SetFlags xtpFlagHideMaximizeBox, 0 CommandBars1(1).SetFlags xtpFlagHideMDIButtons, 0 CommandBars1(1).SetFlags xtpFlagHideClose, 0 CommandBars1(1).SetFlags xtpFlagHideMinimizeBox, 0 CommandBars1(1).SetFlags xtpFlagHideMaximizeBox, 0 End Sub I have attached a sample MDI vb6 application. |
|
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 |