Click here to Skip to main content
15,891,908 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.1K   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 frmDeploymentWizard
    Inherits frmBase

#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 RadioButton1 As System.Windows.Forms.RadioButton
    Friend WithEvents RadioButton2 As System.Windows.Forms.RadioButton
    Friend WithEvents Label1 As System.Windows.Forms.Label
    Friend WithEvents TabPage2 As System.Windows.Forms.TabPage
    Friend WithEvents TabPage3 As System.Windows.Forms.TabPage
    Friend WithEvents CheckBox3 As System.Windows.Forms.CheckBox
    Friend WithEvents Label3 As System.Windows.Forms.Label
    Friend WithEvents RadioButton7 As System.Windows.Forms.RadioButton
    Friend WithEvents RadioButton8 As System.Windows.Forms.RadioButton
    Friend WithEvents RadioButton9 As System.Windows.Forms.RadioButton
    Friend WithEvents TextBox1 As System.Windows.Forms.TextBox
    Friend WithEvents TextBox2 As System.Windows.Forms.TextBox
    Friend WithEvents TextBox3 As System.Windows.Forms.TextBox
    Friend WithEvents TextBox4 As System.Windows.Forms.TextBox
    Friend WithEvents RadioButton10 As System.Windows.Forms.RadioButton
    Friend WithEvents RadioButton11 As System.Windows.Forms.RadioButton
    Friend WithEvents Label4 As System.Windows.Forms.Label
    Friend WithEvents CheckBox4 As System.Windows.Forms.CheckBox
    Friend WithEvents CheckBox5 As System.Windows.Forms.CheckBox
    Friend WithEvents TabPage4 As System.Windows.Forms.TabPage
    Friend WithEvents RadioButton5 As System.Windows.Forms.RadioButton
    Friend WithEvents RadioButton6 As System.Windows.Forms.RadioButton
    Friend WithEvents Label2 As System.Windows.Forms.Label
    Friend WithEvents RadioButton3 As System.Windows.Forms.RadioButton
    Friend WithEvents RadioButton4 As System.Windows.Forms.RadioButton
    Friend WithEvents CheckBox1 As System.Windows.Forms.CheckBox
    Friend WithEvents Label5 As System.Windows.Forms.Label
    Friend WithEvents Label6 As System.Windows.Forms.Label
    Friend WithEvents Label7 As System.Windows.Forms.Label
    Friend WithEvents Label8 As System.Windows.Forms.Label
    Friend WithEvents Button1 As System.Windows.Forms.Button
    Friend WithEvents Label9 As System.Windows.Forms.Label
    Friend WithEvents TabPage5 As System.Windows.Forms.TabPage
    Friend WithEvents CheckedListBox1 As System.Windows.Forms.CheckedListBox
    Friend WithEvents Label10 As System.Windows.Forms.Label
    Friend WithEvents TextBox5 As System.Windows.Forms.TextBox
    Friend WithEvents Button2 As System.Windows.Forms.Button
    Friend WithEvents GroupBox1 As System.Windows.Forms.GroupBox
    Friend WithEvents Label11 As System.Windows.Forms.Label
    Friend WithEvents TextBox6 As System.Windows.Forms.TextBox
    Friend WithEvents Label12 As System.Windows.Forms.Label
    Friend WithEvents TextBox7 As System.Windows.Forms.TextBox
    Friend WithEvents Label13 As System.Windows.Forms.Label
    Friend WithEvents TextBox8 As System.Windows.Forms.TextBox
    Friend WithEvents CheckBox2 As System.Windows.Forms.CheckBox
    Friend WithEvents TextBox9 As System.Windows.Forms.TextBox
    Friend WithEvents btnNext1 As System.Windows.Forms.Button
    <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
        Me.RadioButton1 = New System.Windows.Forms.RadioButton
        Me.RadioButton2 = New System.Windows.Forms.RadioButton
        Me.Label1 = New System.Windows.Forms.Label
        Me.TabPage2 = New System.Windows.Forms.TabPage
        Me.GroupBox1 = New System.Windows.Forms.GroupBox
        Me.CheckBox2 = New System.Windows.Forms.CheckBox
        Me.Label13 = New System.Windows.Forms.Label
        Me.TextBox8 = New System.Windows.Forms.TextBox
        Me.Label12 = New System.Windows.Forms.Label
        Me.TextBox7 = New System.Windows.Forms.TextBox
        Me.Label11 = New System.Windows.Forms.Label
        Me.TextBox6 = New System.Windows.Forms.TextBox
        Me.Label10 = New System.Windows.Forms.Label
        Me.TextBox5 = New System.Windows.Forms.TextBox
        Me.Button2 = New System.Windows.Forms.Button
        Me.RadioButton9 = New System.Windows.Forms.RadioButton
        Me.RadioButton8 = New System.Windows.Forms.RadioButton
        Me.RadioButton7 = New System.Windows.Forms.RadioButton
        Me.Label3 = New System.Windows.Forms.Label
        Me.TabPage3 = New System.Windows.Forms.TabPage
        Me.TextBox4 = New System.Windows.Forms.TextBox
        Me.TextBox3 = New System.Windows.Forms.TextBox
        Me.TextBox2 = New System.Windows.Forms.TextBox
        Me.TextBox1 = New System.Windows.Forms.TextBox
        Me.CheckBox3 = New System.Windows.Forms.CheckBox
        Me.RadioButton10 = New System.Windows.Forms.RadioButton
        Me.RadioButton11 = New System.Windows.Forms.RadioButton
        Me.Label4 = New System.Windows.Forms.Label
        Me.CheckBox4 = New System.Windows.Forms.CheckBox
        Me.CheckBox5 = New System.Windows.Forms.CheckBox
        Me.TabPage4 = New System.Windows.Forms.TabPage
        Me.Label8 = New System.Windows.Forms.Label
        Me.Label7 = New System.Windows.Forms.Label
        Me.Label6 = New System.Windows.Forms.Label
        Me.Label5 = New System.Windows.Forms.Label
        Me.RadioButton5 = New System.Windows.Forms.RadioButton
        Me.RadioButton6 = New System.Windows.Forms.RadioButton
        Me.Label2 = New System.Windows.Forms.Label
        Me.RadioButton3 = New System.Windows.Forms.RadioButton
        Me.RadioButton4 = New System.Windows.Forms.RadioButton
        Me.CheckBox1 = New System.Windows.Forms.CheckBox
        Me.Button1 = New System.Windows.Forms.Button
        Me.Label9 = New System.Windows.Forms.Label
        Me.TabPage5 = New System.Windows.Forms.TabPage
        Me.btnNext1 = New System.Windows.Forms.Button
        Me.CheckedListBox1 = New System.Windows.Forms.CheckedListBox
        Me.TextBox9 = New System.Windows.Forms.TextBox
        Me.TabControl1.SuspendLayout()
        Me.TabPage1.SuspendLayout()
        Me.TabPage2.SuspendLayout()
        Me.GroupBox1.SuspendLayout()
        Me.TabPage3.SuspendLayout()
        Me.TabPage4.SuspendLayout()
        Me.TabPage5.SuspendLayout()
        '
        'TabControl1
        '
        Me.TabControl1.Controls.Add(Me.TabPage5)
        Me.TabControl1.Controls.Add(Me.TabPage2)
        Me.TabControl1.Controls.Add(Me.TabPage3)
        Me.TabControl1.Controls.Add(Me.TabPage4)
        Me.TabControl1.Name = "TabControl1"
        Me.TabControl1.Size = New System.Drawing.Size(464, 318)
        Me.TabControl1.Controls.SetChildIndex(Me.TabPage1, 0)
        Me.TabControl1.Controls.SetChildIndex(Me.TabPage4, 0)
        Me.TabControl1.Controls.SetChildIndex(Me.TabPage3, 0)
        Me.TabControl1.Controls.SetChildIndex(Me.TabPage2, 0)
        Me.TabControl1.Controls.SetChildIndex(Me.TabPage5, 0)
        '
        'btnCancel
        '
        Me.btnCancel.Location = New System.Drawing.Point(384, 8)
        Me.btnCancel.Name = "btnCancel"
        '
        'TabPage1
        '
        Me.TabPage1.Controls.Add(Me.TextBox9)
        Me.TabPage1.Controls.Add(Me.Label9)
        Me.TabPage1.Controls.Add(Me.CheckBox5)
        Me.TabPage1.Controls.Add(Me.CheckBox4)
        Me.TabPage1.Controls.Add(Me.Label4)
        Me.TabPage1.Controls.Add(Me.RadioButton11)
        Me.TabPage1.Controls.Add(Me.RadioButton10)
        Me.TabPage1.Controls.Add(Me.Label1)
        Me.TabPage1.Controls.Add(Me.RadioButton2)
        Me.TabPage1.Controls.Add(Me.RadioButton1)
        Me.TabPage1.Name = "TabPage1"
        Me.TabPage1.Size = New System.Drawing.Size(456, 292)
        Me.TabPage1.Text = "General"
        '
        'btnOK
        '
        Me.btnOK.Location = New System.Drawing.Point(304, 8)
        Me.btnOK.Name = "btnOK"
        '
        'RadioButton1
        '
        Me.RadioButton1.Location = New System.Drawing.Point(56, 40)
        Me.RadioButton1.Name = "RadioButton1"
        Me.RadioButton1.TabIndex = 0
        Me.RadioButton1.Text = "Full Deployment"
        '
        'RadioButton2
        '
        Me.RadioButton2.Location = New System.Drawing.Point(56, 64)
        Me.RadioButton2.Name = "RadioButton2"
        Me.RadioButton2.Size = New System.Drawing.Size(208, 24)
        Me.RadioButton2.TabIndex = 1
        Me.RadioButton2.Text = "Patch an Existing Deployment"
        '
        'Label1
        '
        Me.Label1.Location = New System.Drawing.Point(16, 16)
        Me.Label1.Name = "Label1"
        Me.Label1.TabIndex = 6
        Me.Label1.Text = "General"
        '
        'TabPage2
        '
        Me.TabPage2.Controls.Add(Me.GroupBox1)
        Me.TabPage2.Controls.Add(Me.Button2)
        Me.TabPage2.Controls.Add(Me.RadioButton9)
        Me.TabPage2.Controls.Add(Me.RadioButton8)
        Me.TabPage2.Controls.Add(Me.RadioButton7)
        Me.TabPage2.Controls.Add(Me.Label3)
        Me.TabPage2.Location = New System.Drawing.Point(4, 22)
        Me.TabPage2.Name = "TabPage2"
        Me.TabPage2.Size = New System.Drawing.Size(456, 292)
        Me.TabPage2.TabIndex = 1
        Me.TabPage2.Text = "Release"
        '
        'GroupBox1
        '
        Me.GroupBox1.Controls.Add(Me.CheckBox2)
        Me.GroupBox1.Controls.Add(Me.Label13)
        Me.GroupBox1.Controls.Add(Me.TextBox8)
        Me.GroupBox1.Controls.Add(Me.Label12)
        Me.GroupBox1.Controls.Add(Me.TextBox7)
        Me.GroupBox1.Controls.Add(Me.Label11)
        Me.GroupBox1.Controls.Add(Me.TextBox6)
        Me.GroupBox1.Controls.Add(Me.Label10)
        Me.GroupBox1.Controls.Add(Me.TextBox5)
        Me.GroupBox1.Location = New System.Drawing.Point(40, 112)
        Me.GroupBox1.Name = "GroupBox1"
        Me.GroupBox1.Size = New System.Drawing.Size(376, 168)
        Me.GroupBox1.TabIndex = 22
        Me.GroupBox1.TabStop = False
        Me.GroupBox1.Text = "VSS Settings"
        '
        'CheckBox2
        '
        Me.CheckBox2.Location = New System.Drawing.Point(32, 80)
        Me.CheckBox2.Name = "CheckBox2"
        Me.CheckBox2.Size = New System.Drawing.Size(176, 24)
        Me.CheckBox2.TabIndex = 28
        Me.CheckBox2.Text = "Use Default Settings"
        '
        'Label13
        '
        Me.Label13.Location = New System.Drawing.Point(32, 136)
        Me.Label13.Name = "Label13"
        Me.Label13.TabIndex = 27
        Me.Label13.Text = "Password"
        '
        'TextBox8
        '
        Me.TextBox8.Location = New System.Drawing.Point(136, 136)
        Me.TextBox8.Name = "TextBox8"
        Me.TextBox8.Size = New System.Drawing.Size(192, 21)
        Me.TextBox8.TabIndex = 26
        Me.TextBox8.Text = "TextBox8"
        '
        'Label12
        '
        Me.Label12.Location = New System.Drawing.Point(32, 104)
        Me.Label12.Name = "Label12"
        Me.Label12.TabIndex = 25
        Me.Label12.Text = "User Name"
        '
        'TextBox7
        '
        Me.TextBox7.Location = New System.Drawing.Point(136, 104)
        Me.TextBox7.Name = "TextBox7"
        Me.TextBox7.Size = New System.Drawing.Size(192, 21)
        Me.TextBox7.TabIndex = 24
        Me.TextBox7.Text = "TextBox7"
        '
        'Label11
        '
        Me.Label11.Location = New System.Drawing.Point(32, 56)
        Me.Label11.Name = "Label11"
        Me.Label11.TabIndex = 23
        Me.Label11.Text = "VSS Database"
        '
        'TextBox6
        '
        Me.TextBox6.Location = New System.Drawing.Point(136, 56)
        Me.TextBox6.Name = "TextBox6"
        Me.TextBox6.Size = New System.Drawing.Size(192, 21)
        Me.TextBox6.TabIndex = 22
        Me.TextBox6.Text = "TextBox6"
        '
        'Label10
        '
        Me.Label10.Location = New System.Drawing.Point(32, 32)
        Me.Label10.Name = "Label10"
        Me.Label10.TabIndex = 21
        Me.Label10.Text = "Label As..."
        '
        'TextBox5
        '
        Me.TextBox5.Location = New System.Drawing.Point(136, 24)
        Me.TextBox5.Name = "TextBox5"
        Me.TextBox5.Size = New System.Drawing.Size(192, 21)
        Me.TextBox5.TabIndex = 20
        Me.TextBox5.Text = "TextBox5"
        '
        'Button2
        '
        Me.Button2.Location = New System.Drawing.Point(256, 56)
        Me.Button2.Name = "Button2"
        Me.Button2.Size = New System.Drawing.Size(152, 23)
        Me.Button2.TabIndex = 19
        Me.Button2.Text = "Test"
        '
        'RadioButton9
        '
        Me.RadioButton9.Location = New System.Drawing.Point(144, 80)
        Me.RadioButton9.Name = "RadioButton9"
        Me.RadioButton9.TabIndex = 10
        Me.RadioButton9.Text = "Manual File"
        '
        'RadioButton8
        '
        Me.RadioButton8.Location = New System.Drawing.Point(144, 48)
        Me.RadioButton8.Name = "RadioButton8"
        Me.RadioButton8.TabIndex = 9
        Me.RadioButton8.Text = "BugSpray"
        '
        'RadioButton7
        '
        Me.RadioButton7.Location = New System.Drawing.Point(144, 16)
        Me.RadioButton7.Name = "RadioButton7"
        Me.RadioButton7.TabIndex = 8
        Me.RadioButton7.Text = "VSS"
        '
        'Label3
        '
        Me.Label3.Location = New System.Drawing.Point(32, 16)
        Me.Label3.Name = "Label3"
        Me.Label3.Size = New System.Drawing.Size(100, 24)
        Me.Label3.TabIndex = 7
        Me.Label3.Text = "Generate Release Notes From;"
        '
        'TabPage3
        '
        Me.TabPage3.Controls.Add(Me.TextBox4)
        Me.TabPage3.Controls.Add(Me.TextBox3)
        Me.TabPage3.Controls.Add(Me.TextBox2)
        Me.TabPage3.Controls.Add(Me.TextBox1)
        Me.TabPage3.Controls.Add(Me.CheckBox3)
        Me.TabPage3.Location = New System.Drawing.Point(4, 22)
        Me.TabPage3.Name = "TabPage3"
        Me.TabPage3.Size = New System.Drawing.Size(456, 292)
        Me.TabPage3.TabIndex = 2
        Me.TabPage3.Text = "Version"
        '
        'TextBox4
        '
        Me.TextBox4.Location = New System.Drawing.Point(128, 80)
        Me.TextBox4.Name = "TextBox4"
        Me.TextBox4.Size = New System.Drawing.Size(64, 21)
        Me.TextBox4.TabIndex = 10
        Me.TextBox4.Text = "TextBox4"
        '
        'TextBox3
        '
        Me.TextBox3.Location = New System.Drawing.Point(200, 80)
        Me.TextBox3.Name = "TextBox3"
        Me.TextBox3.Size = New System.Drawing.Size(64, 21)
        Me.TextBox3.TabIndex = 9
        Me.TextBox3.Text = "TextBox3"
        '
        'TextBox2
        '
        Me.TextBox2.Location = New System.Drawing.Point(272, 80)
        Me.TextBox2.Name = "TextBox2"
        Me.TextBox2.Size = New System.Drawing.Size(64, 21)
        Me.TextBox2.TabIndex = 8
        Me.TextBox2.Text = "TextBox2"
        '
        'TextBox1
        '
        Me.TextBox1.Location = New System.Drawing.Point(48, 80)
        Me.TextBox1.Name = "TextBox1"
        Me.TextBox1.Size = New System.Drawing.Size(72, 21)
        Me.TextBox1.TabIndex = 7
        Me.TextBox1.Text = "TextBox1"
        '
        'CheckBox3
        '
        Me.CheckBox3.Location = New System.Drawing.Point(24, 32)
        Me.CheckBox3.Name = "CheckBox3"
        Me.CheckBox3.Size = New System.Drawing.Size(216, 24)
        Me.CheckBox3.TabIndex = 6
        Me.CheckBox3.Text = "Update version number automatically"
        '
        'RadioButton10
        '
        Me.RadioButton10.Location = New System.Drawing.Point(128, 96)
        Me.RadioButton10.Name = "RadioButton10"
        Me.RadioButton10.TabIndex = 10
        Me.RadioButton10.Text = "Based on Date"
        '
        'RadioButton11
        '
        Me.RadioButton11.Location = New System.Drawing.Point(128, 120)
        Me.RadioButton11.Name = "RadioButton11"
        Me.RadioButton11.Size = New System.Drawing.Size(136, 24)
        Me.RadioButton11.TabIndex = 11
        Me.RadioButton11.Text = "Based on VSS Label"
        '
        'Label4
        '
        Me.Label4.Location = New System.Drawing.Point(32, 192)
        Me.Label4.Name = "Label4"
        Me.Label4.TabIndex = 12
        Me.Label4.Text = "Notifications"
        '
        'CheckBox4
        '
        Me.CheckBox4.Location = New System.Drawing.Point(96, 216)
        Me.CheckBox4.Name = "CheckBox4"
        Me.CheckBox4.Size = New System.Drawing.Size(176, 24)
        Me.CheckBox4.TabIndex = 13
        Me.CheckBox4.Text = "Notify the following persons"
        '
        'CheckBox5
        '
        Me.CheckBox5.Location = New System.Drawing.Point(96, 240)
        Me.CheckBox5.Name = "CheckBox5"
        Me.CheckBox5.Size = New System.Drawing.Size(176, 24)
        Me.CheckBox5.TabIndex = 14
        Me.CheckBox5.Text = "Notify QA"
        '
        'TabPage4
        '
        Me.TabPage4.Controls.Add(Me.Label8)
        Me.TabPage4.Controls.Add(Me.Label7)
        Me.TabPage4.Controls.Add(Me.Label6)
        Me.TabPage4.Controls.Add(Me.Label5)
        Me.TabPage4.Controls.Add(Me.RadioButton5)
        Me.TabPage4.Controls.Add(Me.RadioButton6)
        Me.TabPage4.Controls.Add(Me.Label2)
        Me.TabPage4.Controls.Add(Me.RadioButton3)
        Me.TabPage4.Controls.Add(Me.RadioButton4)
        Me.TabPage4.Controls.Add(Me.CheckBox1)
        Me.TabPage4.Location = New System.Drawing.Point(4, 22)
        Me.TabPage4.Name = "TabPage4"
        Me.TabPage4.Size = New System.Drawing.Size(456, 292)
        Me.TabPage4.TabIndex = 3
        Me.TabPage4.Text = "Code"
        '
        'Label8
        '
        Me.Label8.Location = New System.Drawing.Point(56, 192)
        Me.Label8.Name = "Label8"
        Me.Label8.TabIndex = 20
        Me.Label8.Text = "Include File types"
        '
        'Label7
        '
        Me.Label7.Location = New System.Drawing.Point(56, 240)
        Me.Label7.Name = "Label7"
        Me.Label7.TabIndex = 19
        Me.Label7.Text = "Exclude Files"
        '
        'Label6
        '
        Me.Label6.Location = New System.Drawing.Point(56, 216)
        Me.Label6.Name = "Label6"
        Me.Label6.TabIndex = 18
        Me.Label6.Text = "Include Files"
        '
        'Label5
        '
        Me.Label5.Location = New System.Drawing.Point(56, 168)
        Me.Label5.Name = "Label5"
        Me.Label5.TabIndex = 17
        Me.Label5.Text = "Exclude File types"
        '
        'RadioButton5
        '
        Me.RadioButton5.Location = New System.Drawing.Point(184, 112)
        Me.RadioButton5.Name = "RadioButton5"
        Me.RadioButton5.Size = New System.Drawing.Size(208, 24)
        Me.RadioButton5.TabIndex = 15
        Me.RadioButton5.Text = "Use existing Release Build"
        '
        'RadioButton6
        '
        Me.RadioButton6.Location = New System.Drawing.Point(64, 112)
        Me.RadioButton6.Name = "RadioButton6"
        Me.RadioButton6.Size = New System.Drawing.Size(112, 24)
        Me.RadioButton6.TabIndex = 14
        Me.RadioButton6.Text = "Recompile Project"
        '
        'Label2
        '
        Me.Label2.Location = New System.Drawing.Point(16, 32)
        Me.Label2.Name = "Label2"
        Me.Label2.TabIndex = 13
        Me.Label2.Text = "Code Options"
        '
        'RadioButton3
        '
        Me.RadioButton3.Location = New System.Drawing.Point(184, 88)
        Me.RadioButton3.Name = "RadioButton3"
        Me.RadioButton3.Size = New System.Drawing.Size(208, 24)
        Me.RadioButton3.TabIndex = 12
        Me.RadioButton3.Text = "Based on file structure"
        '
        'RadioButton4
        '
        Me.RadioButton4.Location = New System.Drawing.Point(64, 88)
        Me.RadioButton4.Name = "RadioButton4"
        Me.RadioButton4.TabIndex = 11
        Me.RadioButton4.Text = "Use Project files"
        '
        'CheckBox1
        '
        Me.CheckBox1.Location = New System.Drawing.Point(40, 56)
        Me.CheckBox1.Name = "CheckBox1"
        Me.CheckBox1.Size = New System.Drawing.Size(176, 24)
        Me.CheckBox1.TabIndex = 10
        Me.CheckBox1.Text = "Include Code Source Files"
        '
        'Button1
        '
        Me.Button1.Location = New System.Drawing.Point(248, 8)
        Me.Button1.Name = "Button1"
        Me.Button1.Size = New System.Drawing.Size(88, 23)
        Me.Button1.TabIndex = 3
        Me.Button1.Text = "Deploy Now!"
        '
        'Label9
        '
        Me.Label9.Location = New System.Drawing.Point(128, 152)
        Me.Label9.Name = "Label9"
        Me.Label9.TabIndex = 15
        Me.Label9.Text = "To this location"
        '
        'TabPage5
        '
        Me.TabPage5.Controls.Add(Me.btnNext1)
        Me.TabPage5.Controls.Add(Me.CheckedListBox1)
        Me.TabPage5.Location = New System.Drawing.Point(4, 22)
        Me.TabPage5.Name = "TabPage5"
        Me.TabPage5.Size = New System.Drawing.Size(456, 292)
        Me.TabPage5.TabIndex = 4
        Me.TabPage5.Text = "Overview"
        '
        'btnNext1
        '
        Me.btnNext1.Location = New System.Drawing.Point(352, 256)
        Me.btnNext1.Name = "btnNext1"
        Me.btnNext1.TabIndex = 2
        Me.btnNext1.Text = "Next >>"
        '
        'CheckedListBox1
        '
        Me.CheckedListBox1.Items.AddRange(New Object() {"(Manual)    " & Microsoft.VisualBasic.ChrW(9) & "Ensure all Wizard configuration settings are correct", "(Manual)    " & Microsoft.VisualBasic.ChrW(9) & "Check In Your Pending Changes with comments(VSS)", "(Manual) " & Microsoft.VisualBasic.ChrW(9) & "Get Latest CodeSet (VSS)", "(Manual) " & Microsoft.VisualBasic.ChrW(9) & "Check that the applicatin builds (IDE)", "(Automatic) " & Microsoft.VisualBasic.ChrW(9) & "Check Out assemblyinfo file", "(Automatic)" & Microsoft.VisualBasic.ChrW(9) & "Update Version number (IDE)", "(Automatic)" & Microsoft.VisualBasic.ChrW(9) & "Rebuild for release (IDE)", "(Automatic)" & Microsoft.VisualBasic.ChrW(9) & "Label Project (VSS)", "(Automatic)" & Microsoft.VisualBasic.ChrW(9) & "Update Release notes (VSS/BugSpray/Manual)", "(Automatic)" & Microsoft.VisualBasic.ChrW(9) & "Build Distributable (IDE)", "(Automatic)" & Microsoft.VisualBasic.ChrW(9) & "Build Local Installation (FileSystem)", "(Automatic)" & Microsoft.VisualBasic.ChrW(9) & "Copy/FTP To Target location (FileSystem/FTP)", "(Automatic)" & Microsoft.VisualBasic.ChrW(9) & "Notify Team Members (Email)"})
        Me.CheckedListBox1.Location = New System.Drawing.Point(40, 24)
        Me.CheckedListBox1.Name = "CheckedListBox1"
        Me.CheckedListBox1.Size = New System.Drawing.Size(384, 212)
        Me.CheckedListBox1.TabIndex = 0
        '
        'TextBox9
        '
        Me.TextBox9.Location = New System.Drawing.Point(232, 144)
        Me.TextBox9.Name = "TextBox9"
        Me.TextBox9.Size = New System.Drawing.Size(192, 21)
        Me.TextBox9.TabIndex = 16
        Me.TextBox9.Text = "TextBox9"
        '
        'frmDeploymentWizard
        '
        Me.AutoScaleBaseSize = New System.Drawing.Size(5, 14)
        Me.ClientSize = New System.Drawing.Size(464, 358)
        Me.Name = "frmDeploymentWizard"
        Me.Text = "ASP.Net Deployment and Patch Wizard"
        Me.TabControl1.ResumeLayout(False)
        Me.TabPage1.ResumeLayout(False)
        Me.TabPage2.ResumeLayout(False)
        Me.GroupBox1.ResumeLayout(False)
        Me.TabPage3.ResumeLayout(False)
        Me.TabPage4.ResumeLayout(False)
        Me.TabPage5.ResumeLayout(False)

    End Sub

#End Region


    'first hurdle: getting the current vss project!

    ' need to load the project settings, and username/password from the DB
    ' also need to populate the settings in the form
    ' also need to work out the current project that we are working on (i.e. server binding) - but this should be available in the IDE!
    ' then we can run Get's and Check-Ins, as we only have check-outs available right now.

    ' 1. start to propogate settings to/from the database based on the project and user name
    ' ie. vss settings.

    ' 2. start creating all the functionality and thinking about interfaces
    ' try to implement core functionality then refactor the design


    Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
        ' Dim aVSSManager As New clsVSSManager
        ' MsgBox(clsSharedTest.ApplicationObject.Solution.Properties.Item(0))
        ' aVSSManager.SourceSafePath = clsSharedTest.ApplicationObject.Version..Globals..ActiveSolutionProjects..SourceControl..Parent..RegistryRoot..Windows..Solution.Projects.Properties(
        'aVSSManager.OpenDatabase()
        'MsgBox(aVSSManager.CurrentProject())
        ' clsSharedTest.ApplicationObject.SourceControl.DTE.Solution()
        CheckoutAssemblyInfo()
        RebuildAndVersion()
        Label("test")
    End Sub

    Private Sub CheckoutAssemblyInfo()
        If clsSharedTest.ApplicationObject.SourceControl.CheckOutItem("Assemblyinfo.vb") Then
            MsgBox("Checked out Assembly Info dot vb")
        ElseIf clsSharedTest.ApplicationObject.SourceControl.CheckOutItem("Assemblyinfo.cs") Then
            MsgBox("Checked out Assembly Info.cs")
        Else
            MsgBox("COULD NOT CHECK OUT Assembly Info file")
        End If
    End Sub

    Private Sub RebuildAndVersion()

        ' run a rebuild, which should trigger the version update
        ' set to 'release'
        Dim sb As EnvDTE.SolutionBuild = ApplicationObject.Solution.SolutionBuild
        sb.SolutionConfigurations.Item("Release").Activate()
        sb.Build(True)

    End Sub

    Private Sub Label(ByVal labelText As String)
        '  Dim aVSSManager As New clsVSSManager

        'aVSSManager.SourceSafePath = clsSharedTest.ApplicationObject.Version..Globals..ActiveSolutionProjects..SourceControl..Parent..RegistryRoot..Windows..Solution.Projects.Properties(
        'aVSSManager.OpenDatabase()
        'aVSSManager.LabelProject(labelText)

    End Sub

    Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
        'clsSharedTest.ApplicationObject.SourceControl()
        CheckIn()
    End Sub

    Private Sub CheckIn()
        'clsSharedTest.ApplicationObject.SourceControl..ExcludeItems..IsItemCheckedOut..IsItemUnderSCC.
    End Sub


    Private Sub Button3_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnNext1.Click
        TabControl1.SelectedTab = TabPage1
    End Sub
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