⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 listviewdemoform.vb

📁 Mastering VBNet Include Source Code
💻 VB
📖 第 1 页 / 共 2 页
字号:
Option Strict On
Public Class Form1

    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
    Friend WithEvents ListView1 As System.Windows.Forms.ListView
    Friend WithEvents GroupBox1 As System.Windows.Forms.GroupBox
    Friend WithEvents rdIcons As System.Windows.Forms.RadioButton
    Friend WithEvents rdSmallIcons As System.Windows.Forms.RadioButton
    Friend WithEvents rdList As System.Windows.Forms.RadioButton
    Friend WithEvents GroupBox2 As System.Windows.Forms.GroupBox
    Friend WithEvents rdLeft As System.Windows.Forms.RadioButton
    Friend WithEvents rdTop As System.Windows.Forms.RadioButton
    Friend WithEvents bttnPopulate As System.Windows.Forms.Button
    Friend WithEvents bttnEnumerate As System.Windows.Forms.Button
    Friend WithEvents rdDetails As System.Windows.Forms.RadioButton
    Friend WithEvents ColumnHeaderCompany As System.Windows.Forms.ColumnHeader
    Friend WithEvents ColumnHeaderContact As System.Windows.Forms.ColumnHeader
    Friend WithEvents ColumnHeaderTel As System.Windows.Forms.ColumnHeader
    Friend WithEvents ColumnHeaderFAX As System.Windows.Forms.ColumnHeader
    Friend WithEvents rdDefault As System.Windows.Forms.RadioButton
    Friend WithEvents ImageList1 As System.Windows.Forms.ImageList
    Friend WithEvents ImageList2 As System.Windows.Forms.ImageList
    Friend WithEvents bttnIterate As System.Windows.Forms.Button
    Private components As System.ComponentModel.IContainer

    'Required by the Windows Form Designer

    '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.components = New System.ComponentModel.Container()
        Dim resources As System.Resources.ResourceManager = New System.Resources.ResourceManager(GetType(Form1))
        Me.ListView1 = New System.Windows.Forms.ListView()
        Me.ColumnHeaderCompany = New System.Windows.Forms.ColumnHeader()
        Me.ColumnHeaderContact = New System.Windows.Forms.ColumnHeader()
        Me.ColumnHeaderTel = New System.Windows.Forms.ColumnHeader()
        Me.ColumnHeaderFAX = New System.Windows.Forms.ColumnHeader()
        Me.ImageList2 = New System.Windows.Forms.ImageList(Me.components)
        Me.ImageList1 = New System.Windows.Forms.ImageList(Me.components)
        Me.rdDetails = New System.Windows.Forms.RadioButton()
        Me.rdList = New System.Windows.Forms.RadioButton()
        Me.rdLeft = New System.Windows.Forms.RadioButton()
        Me.GroupBox1 = New System.Windows.Forms.GroupBox()
        Me.rdSmallIcons = New System.Windows.Forms.RadioButton()
        Me.rdIcons = New System.Windows.Forms.RadioButton()
        Me.GroupBox2 = New System.Windows.Forms.GroupBox()
        Me.rdTop = New System.Windows.Forms.RadioButton()
        Me.rdDefault = New System.Windows.Forms.RadioButton()
        Me.bttnIterate = New System.Windows.Forms.Button()
        Me.bttnPopulate = New System.Windows.Forms.Button()
        Me.bttnEnumerate = New System.Windows.Forms.Button()
        Me.GroupBox1.SuspendLayout()
        Me.GroupBox2.SuspendLayout()
        Me.SuspendLayout()
        '
        'ListView1
        '
        Me.ListView1.AllowColumnReorder = True
        Me.ListView1.Columns.AddRange(New System.Windows.Forms.ColumnHeader() {Me.ColumnHeaderCompany, Me.ColumnHeaderContact, Me.ColumnHeaderTel, Me.ColumnHeaderFAX})
        Me.ListView1.GridLines = True
        Me.ListView1.LargeImageList = Me.ImageList2
        Me.ListView1.Location = New System.Drawing.Point(8, 8)
        Me.ListView1.Name = "ListView1"
        Me.ListView1.Size = New System.Drawing.Size(416, 384)
        Me.ListView1.SmallImageList = Me.ImageList1
        Me.ListView1.Sorting = System.Windows.Forms.SortOrder.Ascending
        Me.ListView1.StateImageList = Me.ImageList1
        Me.ListView1.TabIndex = 0
        '
        'ColumnHeaderCompany
        '
        Me.ColumnHeaderCompany.Text = "Company"
        Me.ColumnHeaderCompany.Width = 120
        '
        'ColumnHeaderContact
        '
        Me.ColumnHeaderContact.Text = "Contact"
        Me.ColumnHeaderContact.Width = 100
        '
        'ColumnHeaderTel
        '
        Me.ColumnHeaderTel.Text = "Telephone"
        '
        'ColumnHeaderFAX
        '
        Me.ColumnHeaderFAX.Text = "FAX"
        '
        'ImageList2
        '
        Me.ImageList2.ColorDepth = System.Windows.Forms.ColorDepth.Depth8Bit
        Me.ImageList2.ImageSize = New System.Drawing.Size(16, 16)
        Me.ImageList2.ImageStream = CType(resources.GetObject("ImageList2.ImageStream"), System.Windows.Forms.ImageListStreamer)
        Me.ImageList2.TransparentColor = System.Drawing.Color.Transparent
        '
        'ImageList1
        '
        Me.ImageList1.ColorDepth = System.Windows.Forms.ColorDepth.Depth8Bit
        Me.ImageList1.ImageSize = New System.Drawing.Size(16, 16)
        Me.ImageList1.ImageStream = CType(resources.GetObject("ImageList1.ImageStream"), System.Windows.Forms.ImageListStreamer)
        Me.ImageList1.TransparentColor = System.Drawing.Color.Transparent
        '
        'rdDetails
        '
        Me.rdDetails.Font = New System.Drawing.Font("Tahoma", 9.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(161, Byte))
        Me.rdDetails.Location = New System.Drawing.Point(16, 111)
        Me.rdDetails.Name = "rdDetails"
        Me.rdDetails.Size = New System.Drawing.Size(96, 24)
        Me.rdDetails.TabIndex = 3
        Me.rdDetails.Text = "Details"
        '
        'rdList
        '
        Me.rdList.Font = New System.Drawing.Font("Tahoma", 9.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(161, Byte))
        Me.rdList.Location = New System.Drawing.Point(16, 82)
        Me.rdList.Name = "rdList"
        Me.rdList.Size = New System.Drawing.Size(96, 24)
        Me.rdList.TabIndex = 2
        Me.rdList.Text = "List"
        '
        'rdLeft
        '
        Me.rdLeft.Font = New System.Drawing.Font("Tahoma", 9.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(161, Byte))
        Me.rdLeft.Location = New System.Drawing.Point(16, 60)
        Me.rdLeft.Name = "rdLeft"
        Me.rdLeft.Size = New System.Drawing.Size(80, 16)
        Me.rdLeft.TabIndex = 1
        Me.rdLeft.Text = "Left"
        '
        'GroupBox1
        '
        Me.GroupBox1.Controls.AddRange(New System.Windows.Forms.Control() {Me.rdDetails, Me.rdList, Me.rdSmallIcons, Me.rdIcons})
        Me.GroupBox1.Font = New System.Drawing.Font("Tahoma", 11.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(161, Byte))
        Me.GroupBox1.Location = New System.Drawing.Point(432, 8)
        Me.GroupBox1.Name = "GroupBox1"
        Me.GroupBox1.Size = New System.Drawing.Size(128, 144)
        Me.GroupBox1.TabIndex = 1
        Me.GroupBox1.TabStop = False
        Me.GroupBox1.Text = "List Style"
        '
        'rdSmallIcons
        '
        Me.rdSmallIcons.Font = New System.Drawing.Font("Tahoma", 9.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(161, Byte))
        Me.rdSmallIcons.Location = New System.Drawing.Point(16, 53)
        Me.rdSmallIcons.Name = "rdSmallIcons"
        Me.rdSmallIcons.Size = New System.Drawing.Size(96, 24)
        Me.rdSmallIcons.TabIndex = 1
        Me.rdSmallIcons.Text = "Small Icons"
        '
        'rdIcons
        '
        Me.rdIcons.Checked = True
        Me.rdIcons.Font = New System.Drawing.Font("Tahoma", 9.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(161, Byte))
        Me.rdIcons.Location = New System.Drawing.Point(16, 24)
        Me.rdIcons.Name = "rdIcons"
        Me.rdIcons.Size = New System.Drawing.Size(96, 24)
        Me.rdIcons.TabIndex = 0
        Me.rdIcons.TabStop = True
        Me.rdIcons.Text = "Icons"

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -