Click here to Skip to main content
15,893,814 members
Articles / Web Development / HTML

Building a Shared Code Library as a VS.NET Plug-in

Rate me:
Please Sign up or sign in to vote.
4.00/5 (7 votes)
30 Mar 20055 min read 89.2K   594   41  
A plug-in for VS.NET that stores code snippets in a database. From the plug-in you can add code, search the database for code snippets. Also includes examples on how to integrate with the IDE as a plug-in.
Public Class frmTestUserControls
    Inherits System.Windows.Forms.Form

#Region " Windows Form Designer generated code "

    Public Sub New()
        MyBase.New()

        'This call is required by the Windows Form Designer.
        InitializeComponent()

        'Add any initialization after the InitializeComponent() call

    End Sub

    'Form overrides dispose to clean up the component list.
    Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
        If disposing Then
            If Not (components Is Nothing) Then
                components.Dispose()
            End If
        End If
        MyBase.Dispose(disposing)
    End Sub

    'Required by the Windows Form Designer
    Private components As System.ComponentModel.IContainer

    'NOTE: The following procedure is required by the Windows Form Designer
    'It can be modified using the Windows Form Designer.  
    'Do not modify it using the code editor.
    Friend WithEvents UsCodeLibrary1 As FormAddin.ucCodeLibrary
    Friend WithEvents UsCodeLibrary2 As FormAddin.ucCodeLibrary
    Friend WithEvents UsCodeLibrary3 As FormAddin.ucCodeLibrary
    <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
        Me.UsCodeLibrary3 = New FormAddin.ucCodeLibrary
        Me.SuspendLayout()
        '
        'UsCodeLibrary3
        '
        Me.UsCodeLibrary3.ApplicationObject = Nothing
        Me.UsCodeLibrary3.Location = New System.Drawing.Point(40, 32)
        Me.UsCodeLibrary3.Name = "UsCodeLibrary3"
        Me.UsCodeLibrary3.Size = New System.Drawing.Size(184, 432)
        Me.UsCodeLibrary3.TabIndex = 0
        '
        'frmTestUserControls
        '
        Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)
        Me.ClientSize = New System.Drawing.Size(264, 502)
        Me.Controls.Add(Me.UsCodeLibrary3)
        Me.Name = "frmTestUserControls"
        Me.Text = "frmTestUserControls"
        Me.ResumeLayout(False)

    End Sub

#End Region

    Property applicationObject() As EnvDTE.DTE
        Get
            Return UsCodeLibrary3.ApplicationObject()
        End Get
        Set(ByVal Value As EnvDTE.DTE)
            UsCodeLibrary3.ApplicationObject = Value
        End Set
    End Property

End Class

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Web Developer
Thailand Thailand
Spent my whole life developing, having worked in C++, Delphi, ASP, then finally settling down to working solely in ASP.Net. Also a forex day trader.

Comments and Discussions