Print Page | Close Window

sample snippet to use LoadDesignerBars from file?

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=14290
Printed Date: 06 November 2025 at 8:09am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: sample snippet to use LoadDesignerBars from file?
Posted By: sforces
Subject: sample snippet to use LoadDesignerBars from file?
Date Posted: 13 May 2009 at 1:11pm
Suggestion: It would really be helpful if the .chm file supplied had a small snippet of code sample showing how to use a particular method.

I'm new to using CodeJock controls. I'm using Visual Studo 2008 VB.NET and struggling trying to get the CommandBar to load my command bar layout from a file. Can someone provide a small sample of how? I've created a new form, put the Xtreme CommandBars Control on the form. It's named AxCommandBars1.



Replies:
Posted By: sforces
Date Posted: 14 May 2009 at 9:42am
Solved. Was a typo on the extension. Had .xcp instead of .xcb.
Still would be nice to have snippets in the .chm for each of the methods.

In case anyone else needs it, I put this in Form load:
AxCommandBars1.LoadDesignerBars(".\Application.xcb", Nothing)

Of course I later changed the hard coded path and name part to be a assembled.



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