Click here to Skip to main content
15,886,110 members
Articles / Programming Languages / Visual Basic

Resigning a signed assembly

Rate me:
Please Sign up or sign in to vote.
5.00/5 (5 votes)
18 Dec 2012CPOL 21.1K   481   10  
In this project we learn how to resign a signed assembly with another one of your choice
Imports System.Windows.Forms

<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
Partial Class ResignForm
    Inherits System.Windows.Forms.Form

    'Form overrides dispose to clean up the component list.
    <System.Diagnostics.DebuggerNonUserCode()> _
    Protected Overrides Sub Dispose(ByVal disposing As Boolean)
        Try
            If disposing AndAlso components IsNot Nothing Then
                components.Dispose()
            End If
        Finally
            MyBase.Dispose(disposing)
        End Try
    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.
    <System.Diagnostics.DebuggerStepThrough()> _
    Private Sub InitializeComponent()
        Dim resources As System.ComponentModel.ComponentResourceManager = New System.ComponentModel.ComponentResourceManager(GetType(ResignForm))
        Me.btnBrowseAssembly = New System.Windows.Forms.Button()
        Me.txtAssembly = New System.Windows.Forms.TextBox()
        Me.KryptonLabel1 = New System.Windows.Forms.Label()
        Me.KryptonLabel2 = New System.Windows.Forms.Label()
        Me.txtSNKFile = New System.Windows.Forms.TextBox()
        Me.btnBrowseSNK = New System.Windows.Forms.Button()
        Me.btnResign = New System.Windows.Forms.Button()
        Me.Panel1 = New System.Windows.Forms.Panel()
        Me.SuspendLayout()
        '
        'btnBrowseAssembly
        '
        Me.btnBrowseAssembly.Location = New System.Drawing.Point(456, 21)
        Me.btnBrowseAssembly.Name = "btnBrowseAssembly"
        Me.btnBrowseAssembly.Size = New System.Drawing.Size(27, 20)
        Me.btnBrowseAssembly.TabIndex = 0
        Me.btnBrowseAssembly.Text = "..."
        '
        'txtAssembly
        '
        Me.txtAssembly.Location = New System.Drawing.Point(78, 21)
        Me.txtAssembly.Name = "txtAssembly"
        Me.txtAssembly.Size = New System.Drawing.Size(372, 20)
        Me.txtAssembly.TabIndex = 1
        '
        'KryptonLabel1
        '
        Me.KryptonLabel1.Location = New System.Drawing.Point(12, 21)
        Me.KryptonLabel1.Name = "KryptonLabel1"
        Me.KryptonLabel1.Size = New System.Drawing.Size(65, 20)
        Me.KryptonLabel1.TabIndex = 2
        Me.KryptonLabel1.Text = "Assembly:"
        '
        'KryptonLabel2
        '
        Me.KryptonLabel2.Location = New System.Drawing.Point(12, 46)
        Me.KryptonLabel2.Name = "KryptonLabel2"
        Me.KryptonLabel2.Size = New System.Drawing.Size(58, 20)
        Me.KryptonLabel2.TabIndex = 2
        Me.KryptonLabel2.Text = "SNK File:"
        '
        'txtSNKFile
        '
        Me.txtSNKFile.Location = New System.Drawing.Point(78, 46)
        Me.txtSNKFile.Name = "txtSNKFile"
        Me.txtSNKFile.Size = New System.Drawing.Size(372, 20)
        Me.txtSNKFile.TabIndex = 1
        '
        'btnBrowseSNK
        '
        Me.btnBrowseSNK.Location = New System.Drawing.Point(456, 46)
        Me.btnBrowseSNK.Name = "btnBrowseSNK"
        Me.btnBrowseSNK.Size = New System.Drawing.Size(27, 20)
        Me.btnBrowseSNK.TabIndex = 0
        Me.btnBrowseSNK.Text = "..."
        '
        'btnResign
        '
        Me.btnResign.Location = New System.Drawing.Point(78, 89)
        Me.btnResign.Name = "btnResign"
        Me.btnResign.Size = New System.Drawing.Size(372, 25)
        Me.btnResign.TabIndex = 0
        Me.btnResign.Text = "Resign"
        '
        'Panel1
        '
        Me.Panel1.BackColor = System.Drawing.Color.FromArgb(CType(CType(64, Byte), Integer), CType(CType(64, Byte), Integer), CType(CType(64, Byte), Integer))
        Me.Panel1.Location = New System.Drawing.Point(15, 78)
        Me.Panel1.Name = "Panel1"
        Me.Panel1.Size = New System.Drawing.Size(469, 1)
        Me.Panel1.TabIndex = 3
        '
        'ResignForm
        '
        Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
        Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
        Me.ClientSize = New System.Drawing.Size(496, 126)
        Me.Controls.Add(Me.Panel1)
        Me.Controls.Add(Me.KryptonLabel2)
        Me.Controls.Add(Me.KryptonLabel1)
        Me.Controls.Add(Me.txtSNKFile)
        Me.Controls.Add(Me.txtAssembly)
        Me.Controls.Add(Me.btnResign)
        Me.Controls.Add(Me.btnBrowseSNK)
        Me.Controls.Add(Me.btnBrowseAssembly)
        Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle
        Me.Icon = CType(resources.GetObject("$this.Icon"), System.Drawing.Icon)
        Me.MaximizeBox = False
        Me.MinimizeBox = False
        Me.Name = "ResignForm"
        Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen
        Me.Text = "Ahmad Dekmak's Resigner"
        Me.ResumeLayout(False)
        Me.PerformLayout()

    End Sub
    Friend WithEvents btnBrowseAssembly As Button
    Friend WithEvents txtAssembly As TextBox
    Friend WithEvents KryptonLabel1 As Label
    Friend WithEvents KryptonLabel2 As Label
    Friend WithEvents txtSNKFile As TextBox
    Friend WithEvents btnBrowseSNK As Button
    Friend WithEvents btnResign As Button
    Friend WithEvents Panel1 As System.Windows.Forms.Panel
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, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Technical Lead
Lebanon Lebanon
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions