Print Page | Close Window

Command bars error in version 10.1

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=3986
Printed Date: 21 June 2025 at 10:07am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Command bars error in version 10.1
Posted By: lionello
Subject: Command bars error in version 10.1
Date Posted: 11 April 2006 at 10:57am

'   "....BarID =" cause an error in "Set ControlFile = ...". Why?
CommandBars.ActiveMenuBar.BarID = 1000

Set ControlFile = CommandBars.ActiveMenuBar.Controls.Add(xtpControlPopup, 0, "&File")




Replies:
Posted By: Oleg
Date Posted: 12 April 2006 at 7:43am
Sorry, it is internal thing. MenuBar.BarID assumed to be 1. please don't change it.

-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: Milkman
Date Posted: 12 April 2006 at 12:28pm
I can confirm this bug.  I get the following error:

Quote Run-Time error '-2147417848 (80070108)':

Method 'Active MenuBar' of object '_DCommandBars' failed


when I execute this line of code

Set ControlFile = CommandBars.ActiveMenuBar.Controls.Add(xtpControlPopup, 0, "&File", -1, False)


I had set the BarID to 999.  Resetting the BarID to 1 fixes the problem.  Also note that pressing the Stop button after this error crashes the IDE.

Thanks for letting us know about this Oleg.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net