Visual Basic Add Menu example

  • The example to add menus in Visual Basic by code in the documentation needs a little massaging to get it working. My code below works for me in VS 2005.

    It requires a MainMenu which is no longer used much in Visual Studio 2005 (replaced by MenuStrip but still available for backwards compatability).

    If anyone can get it to work with a MenuStrip that would be great as it is a much better looking control which you can add images to :)

    Note modification to Enum and

    Code
    Dim textArrayArray1 As String()() = New String()(10 - 1) {}

    should be

    Code
    Dim textArrayArray1 As String()() = New String(10 - 1)() {}

    Also

    Code
    Public Function CurrEdit() As WPDLLIntReturn Me.wpdllInt1End Function


    should be

    Code
    Public Function CurrEdit() As WPDLLInt Implements WPDynamic.IGetCurrEditor.CurrEdit        Return Me.WpdllInt1    End Function

    I am still amazed at what TextDynamic can do and I have only touched the surface.

    GRS