Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - Remove Minimize Maximize and Close From MDI Child
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Remove Minimize Maximize and Close From MDI Child

 Post Reply Post Reply
Author
Message Reverse Sort Order
CarlVaskman View Drop Down
Newbie
Newbie


Joined: 25 September 2020
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote CarlVaskman Quote  Post ReplyReply Direct Link To This Post Topic: Remove Minimize Maximize and Close From MDI Child
    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.



Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.055 seconds.