Menu

#1 Visual Basic Support

open
nobody
None
5
2008-02-21
2008-02-21
naftali5
No

Not sure if this should be classified as a bug, but I can't get it working.
I generally code in vb, and ran into a few problems.
Firstly, when building I get a message stating that "the type initializer for Azibo.Toolbar threw an exception"

I also can not add attributes to the class as the code
[ToolbarAttribute(Name = "My Sample Toolbar",
MenuText = "My Sample Toolbar",
HelpText = "This is the first sample Toolbar created with Azibo",
Style = TOOLBARSTYLE.EXPLORER_TOOLBAR | TOOLBARSTYLE.HORIZONTAL_EXPLORER_BAR)]
does not work in vb (you can not explicitly set properties) and there is no overload which allows for parameters.
Adding the following code to the source may have solve this problem, but I still do not have it working.

public ToolbarAttribute() { }

public ToolbarAttribute(TOOLBARSTYLE Style, string Name, string MenuText, string HelpText) {
this.m_oStyle = Style;
this.m_sName = Name;
this.m_sMenuText = MenuText;
this.m_sHelpText = HelpText;
}

The c# example built fine once I registered the dependencies and set the references, only vb is giving me grief.

Discussion


Log in to post a comment.