Print Page | Close Window

Calling LoadDesignerBars in C#

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Suite Pro
Forum Description: Topics Related to Codejock Suite Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=2109
Printed Date: 31 October 2024 at 9:29pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Calling LoadDesignerBars in C#
Posted By: blazej
Subject: Calling LoadDesignerBars in C#
Date Posted: 13 April 2005 at 9:05am
Hi

We've just purchases Xtreme Suite ActiveX and we're kind of disappointed by the documentation... Anyway.

Here's the question/problem: how do I call LoadDesignerBars from C#? I want to embed the .xcb file as a resource within my application's assembly and then call LoadDesignerBars to retrieve the layout. I've seen example of how to do it in VB and C++ but *not* in C#. Any hints?

Thanks in advance

Michal Blazejczyk



Replies:
Posted By: SuperMario
Date Posted: 13 April 2005 at 11:12am
Can I see code you use to load the XCB file?


Posted By: blazej
Date Posted: 13 April 2005 at 11:15am
Hi

Right now I simply use:

commandBars.LoadDesignerBars( "MainForm.xcb", null );

This loads my command bars from an external file.
I'd like to do it from an embedded resource.
But I don't know what to pass as resource name and instance.

Thanks,

    Michal


Posted By: Kelbob
Date Posted: 20 April 2005 at 4:15am

Hi,

Has anybody figured out how to add the XCB file as a resource?

Cheers



Posted By: Oleg
Date Posted: 21 April 2005 at 11:32pm

Right click on CommandBars, chosse "load XCB file"

in source add

commandBars.LoadDesignerBars( null, null );



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


Posted By: blazej
Date Posted: 19 July 2005 at 11:44am
Hi

This works but is there a way to load the designer bars setup from a regular resource? The first argument of LoadDesignerBars is named fileNameOrResource. If I want this argument to be a "resource", what is the type of the object I should pass to it? This kind of information should be in the documentation but it is not there...

Cheers



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