Hide/disable Form ControlBox button |
Post Reply |
Author | |
Squale
Groupie Joined: 29 April 2009 Status: Offline Points: 25 |
Post Options
Thanks(0)
Posted: 08 July 2010 at 9:19am |
Is it possible to hide or disable form controlbox button at runtime?
In my VB6 application, resize is not supported, therefore I have disabled MaxButton. I would have prefered make it not display. For modal form I would like to hide minimize and maximize button. |
|
Product: Xtreme SuitePro (ActiveX) version 13.3.1
Platform: Windows XP (32bit) - SP 3 Language: Visual Basic 6.0 |
|
Xander75
Senior Member Joined: 26 April 2007 Status: Offline Points: 353 |
Post Options
Thanks(0)
|
Hi,
This has nothing to do with the Codejock software, what you are requesting is specific to VB6. You do one of two things...
|
|
Product: Xtreme SuitePro (ActiveX) v15.3.1
Platform: Windows 7 64-bit (SP1) Professional Edition Languages: C#.Net using Visual Studio 2012 & Visual Basic 6.0 (SP6) |
|
Squale
Groupie Joined: 29 April 2009 Status: Offline Points: 25 |
Post Options
Thanks(0)
|
thanks xander for your answer but... Google can not help (you must be a fan of "Let me google that for you" http://www.lmgtfy.com/?q=Boulet&l=1)
My question is to know if we can "play" with commandbar controlbox. Hiding "maximize" button and having "miminize" and "close" one re-arrange. Why not, a way to add new button next to controlbox one. CommandBar "SetFlags" seems to be THE solution but I have not found a way to make it works. |
|
Product: Xtreme SuitePro (ActiveX) version 13.3.1
Platform: Windows XP (32bit) - SP 3 Language: Visual Basic 6.0 |
|
Xander75
Senior Member Joined: 26 April 2007 Status: Offline Points: 353 |
Post Options
Thanks(0)
|
Hi,
As far as I know the ControlBox of a Form is skinned by the Codejock tool and that's all, as the Form is still a VB Form underneath. Using the "CommandBars.ActiveMenuBar.SetFlags" option only removes the selected box from the CommandBars when used with a MDI application, not the Form. To do this use the following code:
But as far as I can see it does not change the Forms actual ControlBox area. |
|
Product: Xtreme SuitePro (ActiveX) v15.3.1
Platform: Windows 7 64-bit (SP1) Professional Edition Languages: C#.Net using Visual Studio 2012 & Visual Basic 6.0 (SP6) |
|
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 |