![]() |
FileNameOrResource Argument |
Post Reply
|
| Author | |
robs
Groupie
Joined: 09 November 2003 Status: Offline Points: 84 |
Post Options
Thanks(0)
Quote Reply
Topic: FileNameOrResource ArgumentPosted: 13 November 2003 at 9:43am |
|
Does anyone know if the LoadDesignerBars method only excepts references to files (.xcb) or does it also except a reference to a resource of some type?
|
|
![]() |
|
downtowntoby
Newbie
Joined: 09 November 2003 Location: United States Status: Offline Points: 5 |
Post Options
Thanks(0)
Quote Reply
Posted: 13 November 2003 at 3:10pm |
|
To add xcb file to resource: Rightclick on command bars and choose properties. Select your xcb file. Call CommandBars.LoadDesignerBars without parameters. |
|
![]() |
|
robs
Groupie
Joined: 09 November 2003 Status: Offline Points: 84 |
Post Options
Thanks(0)
Quote Reply
Posted: 13 November 2003 at 9:30pm |
|
Thanks for your input downtowntoby. I realized that feature, but didn't consider it to be a "resource". I think that using the property page of the ocx to load the .xcb file just throws that info in the registry as binary. I was hoping that "resource" meant some kind of resource file who's file format could be customized (not using Designer Studio). I think a better name for the argument would be "FileName" since that's the only type the method accepts. Thanks again. Edited by robs |
|
![]() |
|
Kelbob
Newbie
Joined: 06 April 2005 Status: Offline Points: 7 |
Post Options
Thanks(0)
Quote Reply
Posted: 20 April 2005 at 4:31am |
|
1. Add your xcb file in the project. 2. Set the properties to embedded resource 3. Use the fololling code ResourceManager res = new ResourceManager(typeof(MainForm)) ; // Load CommandbarsCommandBars.LoadDesignerBars(res.GetObject"MainForm.xcb") , this) ;where main form is the .. er.. the main form of the application Hope this helps JK
|
|
![]() |
|
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 |