Click here to Skip to main content
15,891,951 members
Articles / Programming Languages / Visual Basic

Serializable Generic Collection

Rate me:
Please Sign up or sign in to vote.
3.00/5 (6 votes)
27 Nov 2007CPOL 34.6K   217   22  
A Generic collection that can be serialized in XML format.
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
Partial Class Form1
    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)
        If disposing AndAlso components IsNot Nothing Then
            components.Dispose()
        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.
    <System.Diagnostics.DebuggerStepThrough()> _
    Private Sub InitializeComponent()
        Me.btnDe = New System.Windows.Forms.Button
        Me.btnSer = New System.Windows.Forms.Button
        Me.Label1 = New System.Windows.Forms.Label
        Me.Button1 = New System.Windows.Forms.Button
        Me.SuspendLayout()
        '
        'btnDe
        '
        Me.btnDe.Location = New System.Drawing.Point(258, 12)
        Me.btnDe.Name = "btnDe"
        Me.btnDe.Size = New System.Drawing.Size(76, 34)
        Me.btnDe.TabIndex = 8
        Me.btnDe.Text = "DeSerialize"
        Me.btnDe.UseVisualStyleBackColor = True
        '
        'btnSer
        '
        Me.btnSer.Location = New System.Drawing.Point(340, 12)
        Me.btnSer.Name = "btnSer"
        Me.btnSer.Size = New System.Drawing.Size(76, 34)
        Me.btnSer.TabIndex = 7
        Me.btnSer.Text = "Serialize"
        Me.btnSer.UseVisualStyleBackColor = True
        '
        'Label1
        '
        Me.Label1.AutoSize = True
        Me.Label1.Location = New System.Drawing.Point(47, 23)
        Me.Label1.Name = "Label1"
        Me.Label1.Size = New System.Drawing.Size(0, 13)
        Me.Label1.TabIndex = 9
        '
        'Button1
        '
        Me.Button1.Location = New System.Drawing.Point(176, 12)
        Me.Button1.Name = "Button1"
        Me.Button1.Size = New System.Drawing.Size(76, 34)
        Me.Button1.TabIndex = 10
        Me.Button1.Text = "DeSerialize"
        Me.Button1.UseVisualStyleBackColor = True
        Me.Button1.Visible = False
        '
        'Form1
        '
        Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
        Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
        Me.ClientSize = New System.Drawing.Size(428, 58)
        Me.Controls.Add(Me.Button1)
        Me.Controls.Add(Me.Label1)
        Me.Controls.Add(Me.btnDe)
        Me.Controls.Add(Me.btnSer)
        Me.Name = "Form1"
        Me.Text = "Demo"
        Me.ResumeLayout(False)
        Me.PerformLayout()

    End Sub
    Friend WithEvents btnDe As System.Windows.Forms.Button
    Friend WithEvents btnSer As System.Windows.Forms.Button
    Friend WithEvents Label1 As System.Windows.Forms.Label
    Friend WithEvents Button1 As System.Windows.Forms.Button

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
Web Developer
Iran (Islamic Republic of) Iran (Islamic Republic of)
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions