in

Community

Take part in the community surrounding CodeBreeze and other products from SteelBlue Solutions.
Latest post 12-16-2009 11:54 AM by Joseph Baggett. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 10-05-2009 10:52 PM

    Writing a CodeBreeze Module in VB.Net

    Convert this to VB.Net:

    public void Initialize(CodeBreezeModuleEvents context)
    {
          context.CodeGenerating +=
    OnCodeGenerating;
    }

     

    I thought it should be:

    public Sub Initialize(CodeBreezeModuleEvents context) Implements ICodeBreezeModule.Initialize
          AddHandler context.CodeGenerating, AddressOf
    OnCodeGenerating
    end sub

     

    But this results in the compiler error that CodeGenerating is not an event of context.

     

    What is the correct way to do this in VB?

  • 12-16-2009 11:54 AM In reply to

    Re: Writing a CodeBreeze Module in VB.Net

    I'm not too good with VB.NET, but do you have a function called OnCodeGenerating there?  Can't see everything.  I could probably copy and paste everything you have to tell you if you have it here.

    The other thing you have to watch for I have run into is forgetting to put the CodeBreezeModule attribute of the class, which will cause an error when opening up CodeBreeze because it is using reflection to pull out the string values from the constructor to be displayed in the interface.  Just fyi.

     

     

Page 1 of 1 (2 items)
2008 - All rights reserved
Powered by Community Server (Commercial Edition), by Telligent Systems