<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
		<id>http://www.vbex.ru/index.php?action=history&amp;feed=atom&amp;title=VB.Net_Tutorial%2FGUI%2FCheckedListBox</id>
		<title>VB.Net Tutorial/GUI/CheckedListBox - История изменений</title>
		<link rel="self" type="application/atom+xml" href="http://www.vbex.ru/index.php?action=history&amp;feed=atom&amp;title=VB.Net_Tutorial%2FGUI%2FCheckedListBox"/>
		<link rel="alternate" type="text/html" href="http://www.vbex.ru/index.php?title=VB.Net_Tutorial/GUI/CheckedListBox&amp;action=history"/>
		<updated>2026-04-05T13:13:29Z</updated>
		<subtitle>История изменений этой страницы в вики</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://www.vbex.ru/index.php?title=VB.Net_Tutorial/GUI/CheckedListBox&amp;diff=3934&amp;oldid=prev</id>
		<title> в 16:40, 26 мая 2010</title>
		<link rel="alternate" type="text/html" href="http://www.vbex.ru/index.php?title=VB.Net_Tutorial/GUI/CheckedListBox&amp;diff=3934&amp;oldid=prev"/>
				<updated>2010-05-26T16:40:30Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Предыдущая&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Версия 16:40, 26 мая 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; style=&quot;text-align: center;&quot; lang=&quot;ru&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(нет различий)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
			</entry>

	<entry>
		<id>http://www.vbex.ru/index.php?title=VB.Net_Tutorial/GUI/CheckedListBox&amp;diff=3935&amp;oldid=prev</id>
		<title>Admin: 1 версия</title>
		<link rel="alternate" type="text/html" href="http://www.vbex.ru/index.php?title=VB.Net_Tutorial/GUI/CheckedListBox&amp;diff=3935&amp;oldid=prev"/>
				<updated>2010-05-26T12:57:32Z</updated>
		
		<summary type="html">&lt;p&gt;1 версия&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Add value to Checked List Box==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;vbnet&amp;quot;&amp;gt;Imports System.Drawing&lt;br /&gt;
Imports System.Drawing.Drawing2D&lt;br /&gt;
Imports System.Windows.Forms&lt;br /&gt;
public class CheckBoxListAddValueSelectionEvent&lt;br /&gt;
   public Shared Sub Main&lt;br /&gt;
        Application.Run(New Form1)&lt;br /&gt;
   End Sub&lt;br /&gt;
End class&lt;br /&gt;
Public Class Form1&lt;br /&gt;
    Inherits System.Windows.Forms.Form&lt;br /&gt;
#Region &amp;quot; Windows Form Designer generated code &amp;quot;&lt;br /&gt;
    Public Sub New()&lt;br /&gt;
        MyBase.New()&lt;br /&gt;
        &amp;quot;This call is required by the Windows Form Designer.&lt;br /&gt;
        InitializeComponent()&lt;br /&gt;
        &amp;quot;Add any initialization after the InitializeComponent() call&lt;br /&gt;
    End Sub&lt;br /&gt;
    &amp;quot;Form overrides dispose to clean up the component list.&lt;br /&gt;
    Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)&lt;br /&gt;
        If disposing Then&lt;br /&gt;
            If Not (components Is Nothing) Then&lt;br /&gt;
                components.Dispose()&lt;br /&gt;
            End If&lt;br /&gt;
        End If&lt;br /&gt;
        MyBase.Dispose(disposing)&lt;br /&gt;
    End Sub&lt;br /&gt;
    &amp;quot;Required by the Windows Form Designer&lt;br /&gt;
    Private components As System.ruponentModel.IContainer&lt;br /&gt;
    &amp;quot;NOTE: The following procedure is required by the Windows Form Designer&lt;br /&gt;
    &amp;quot;It can be modified using the Windows Form Designer.  &lt;br /&gt;
    &amp;quot;Do not modify it using the code editor.&lt;br /&gt;
    Friend WithEvents CheckedListBox1 As System.Windows.Forms.CheckedListBox&lt;br /&gt;
    Friend WithEvents TextBox1 As System.Windows.Forms.TextBox&lt;br /&gt;
    &amp;lt;System.Diagnostics.DebuggerStepThrough()&amp;gt; Private Sub InitializeComponent()&lt;br /&gt;
        Me.CheckedListBox1 = New System.Windows.Forms.CheckedListBox&lt;br /&gt;
        Me.TextBox1 = New System.Windows.Forms.TextBox&lt;br /&gt;
        Me.SuspendLayout()&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;CheckedListBox1&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.CheckedListBox1.CheckOnClick = True&lt;br /&gt;
        Me.CheckedListBox1.Font = New System.Drawing.Font(&amp;quot;Microsoft Sans Serif&amp;quot;, 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))&lt;br /&gt;
        Me.CheckedListBox1.Location = New System.Drawing.Point(96, 6)&lt;br /&gt;
        Me.CheckedListBox1.Name = &amp;quot;CheckedListBox1&amp;quot;&lt;br /&gt;
        Me.CheckedListBox1.Size = New System.Drawing.Size(120, 150)&lt;br /&gt;
        Me.CheckedListBox1.TabIndex = 0&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;TextBox1&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.TextBox1.Font = New System.Drawing.Font(&amp;quot;Microsoft Sans Serif&amp;quot;, 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))&lt;br /&gt;
        Me.TextBox1.Location = New System.Drawing.Point(16, 184)&lt;br /&gt;
        Me.TextBox1.Name = &amp;quot;TextBox1&amp;quot;&lt;br /&gt;
        Me.TextBox1.Size = New System.Drawing.Size(296, 20)&lt;br /&gt;
        Me.TextBox1.TabIndex = 2&lt;br /&gt;
        Me.TextBox1.Text = &amp;quot;TextBox1&amp;quot;&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;Form1&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.AutoScaleBaseSize = New System.Drawing.Size(15, 37)&lt;br /&gt;
        Me.ClientSize = New System.Drawing.Size(336, 229)&lt;br /&gt;
        Me.Controls.Add(Me.TextBox1)&lt;br /&gt;
        Me.Controls.Add(Me.CheckedListBox1)&lt;br /&gt;
        Me.Font = New System.Drawing.Font(&amp;quot;Microsoft Sans Serif&amp;quot;, 24.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))&lt;br /&gt;
        Me.Name = &amp;quot;Form1&amp;quot;&lt;br /&gt;
        Me.Text = &amp;quot;Form1&amp;quot;&lt;br /&gt;
        Me.ResumeLayout(False)&lt;br /&gt;
    End Sub&lt;br /&gt;
#End Region&lt;br /&gt;
    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load&lt;br /&gt;
        CheckedListBox1.Items.Add(&amp;quot;Item 1&amp;quot;, True)&lt;br /&gt;
        CheckedListBox1.Items.Add(&amp;quot;Item 2&amp;quot;, True)&lt;br /&gt;
        CheckedListBox1.Items.Add(&amp;quot;Item 3&amp;quot;, True)&lt;br /&gt;
        CheckedListBox1.Items.Add(&amp;quot;Item 4&amp;quot;, False)&lt;br /&gt;
        CheckedListBox1.Items.Add(&amp;quot;Item 5&amp;quot;, True)&lt;br /&gt;
        CheckedListBox1.Items.Add(&amp;quot;Item 6&amp;quot;, True)&lt;br /&gt;
        CheckedListBox1.Items.Add(&amp;quot;Item 7&amp;quot;, True)&lt;br /&gt;
        CheckedListBox1.Items.Add(&amp;quot;Item 8&amp;quot;, False)&lt;br /&gt;
        CheckedListBox1.Items.Add(&amp;quot;Item 9&amp;quot;, True)&lt;br /&gt;
        CheckedListBox1.Items.Add(&amp;quot;Item 10&amp;quot;, True)&lt;br /&gt;
        CheckedListBox1.Items.Add(&amp;quot;Item 11&amp;quot;, True)&lt;br /&gt;
    End Sub&lt;br /&gt;
    Private Sub CheckedListBox1_ItemCheck(ByVal sender As Object, ByVal e As System.Windows.Forms.ItemCheckEventArgs) Handles CheckedListBox1.ItemCheck&lt;br /&gt;
        Select Case e.NewValue&lt;br /&gt;
            Case CheckState.Checked&lt;br /&gt;
                TextBox1.Text = &amp;quot;You checked Item &amp;quot; &amp;amp; e.Index&lt;br /&gt;
            Case CheckState.Unchecked&lt;br /&gt;
                TextBox1.Text = &amp;quot;You unchecked Item &amp;quot; &amp;amp; e.Index&lt;br /&gt;
        End Select&lt;br /&gt;
    End Sub&lt;br /&gt;
End Class&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==CheckedListBox: Add Items, Get Selected Items and Get Selected Indices==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;vbnet&amp;quot;&amp;gt;Imports System.Windows.Forms&lt;br /&gt;
public class CheckedListBoxAddItemGetSelected&lt;br /&gt;
   public Shared Sub Main&lt;br /&gt;
        Application.Run(New Form1)&lt;br /&gt;
   End Sub&lt;br /&gt;
End class&lt;br /&gt;
Public Class Form1&lt;br /&gt;
    Inherits System.Windows.Forms.Form&lt;br /&gt;
#Region &amp;quot; Windows Form Designer generated code &amp;quot;&lt;br /&gt;
    Public Sub New()&lt;br /&gt;
        MyBase.New()&lt;br /&gt;
        &amp;quot;This call is required by the Windows Form Designer.&lt;br /&gt;
        InitializeComponent()&lt;br /&gt;
        &amp;quot;Add any initialization after the InitializeComponent() call&lt;br /&gt;
    End Sub&lt;br /&gt;
    &amp;quot;Form overrides dispose to clean up the component list.&lt;br /&gt;
    Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)&lt;br /&gt;
        If disposing Then&lt;br /&gt;
            If Not (components Is Nothing) Then&lt;br /&gt;
                components.Dispose()&lt;br /&gt;
            End If&lt;br /&gt;
        End If&lt;br /&gt;
        MyBase.Dispose(disposing)&lt;br /&gt;
    End Sub&lt;br /&gt;
    &amp;quot;Required by the Windows Form Designer&lt;br /&gt;
    Private components As System.ruponentModel.IContainer&lt;br /&gt;
    &amp;quot;NOTE: The following procedure is required by the Windows Form Designer&lt;br /&gt;
    &amp;quot;It can be modified using the Windows Form Designer.  &lt;br /&gt;
    &amp;quot;Do not modify it using the code editor.&lt;br /&gt;
    Friend WithEvents btnAddItems As System.Windows.Forms.Button&lt;br /&gt;
    Friend WithEvents clb1 As System.Windows.Forms.CheckedListBox&lt;br /&gt;
    Friend WithEvents btnGetCheckedIndices As System.Windows.Forms.Button&lt;br /&gt;
    Friend WithEvents btnGetCheckedItems As System.Windows.Forms.Button&lt;br /&gt;
    Friend WithEvents ColorDialog1 As System.Windows.Forms.ColorDialog&lt;br /&gt;
    &amp;lt;System.Diagnostics.DebuggerStepThrough()&amp;gt; Private Sub InitializeComponent()&lt;br /&gt;
        Me.btnAddItems = New System.Windows.Forms.Button()&lt;br /&gt;
        Me.clb1 = New System.Windows.Forms.CheckedListBox()&lt;br /&gt;
        Me.btnGetCheckedItems = New System.Windows.Forms.Button()&lt;br /&gt;
        Me.btnGetCheckedIndices = New System.Windows.Forms.Button()&lt;br /&gt;
        Me.ColorDialog1 = New System.Windows.Forms.ColorDialog()&lt;br /&gt;
        Me.SuspendLayout()&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;btnAddItems&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.btnAddItems.BackColor = System.Drawing.SystemColors.ControlLight&lt;br /&gt;
        Me.btnAddItems.Location = New System.Drawing.Point(176, 8)&lt;br /&gt;
        Me.btnAddItems.Name = &amp;quot;btnAddItems&amp;quot;&lt;br /&gt;
        Me.btnAddItems.Size = New System.Drawing.Size(104, 24)&lt;br /&gt;
        Me.btnAddItems.TabIndex = 3&lt;br /&gt;
        Me.btnAddItems.Text = &amp;quot;Add Items&amp;quot;&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;clb1&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.clb1.Location = New System.Drawing.Point(16, 8)&lt;br /&gt;
        Me.clb1.Name = &amp;quot;clb1&amp;quot;&lt;br /&gt;
        Me.clb1.Size = New System.Drawing.Size(144, 79)&lt;br /&gt;
        Me.clb1.TabIndex = 4&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;btnGetCheckedItems&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.btnGetCheckedItems.BackColor = System.Drawing.SystemColors.ControlLight&lt;br /&gt;
        Me.btnGetCheckedItems.Location = New System.Drawing.Point(176, 40)&lt;br /&gt;
        Me.btnGetCheckedItems.Name = &amp;quot;btnGetCheckedItems&amp;quot;&lt;br /&gt;
        Me.btnGetCheckedItems.Size = New System.Drawing.Size(104, 24)&lt;br /&gt;
        Me.btnGetCheckedItems.TabIndex = 5&lt;br /&gt;
        Me.btnGetCheckedItems.Text = &amp;quot;Checked by Item&amp;quot;&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;btnGetCheckedIndices&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.btnGetCheckedIndices.BackColor = System.Drawing.SystemColors.ControlLight&lt;br /&gt;
        Me.btnGetCheckedIndices.Location = New System.Drawing.Point(176, 72)&lt;br /&gt;
        Me.btnGetCheckedIndices.Name = &amp;quot;btnGetCheckedIndices&amp;quot;&lt;br /&gt;
        Me.btnGetCheckedIndices.Size = New System.Drawing.Size(104, 24)&lt;br /&gt;
        Me.btnGetCheckedIndices.TabIndex = 6&lt;br /&gt;
        Me.btnGetCheckedIndices.Text = &amp;quot;Checked by Index&amp;quot;&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;Form1&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)&lt;br /&gt;
        Me.ClientSize = New System.Drawing.Size(296, 277)&lt;br /&gt;
        Me.Controls.AddRange(New System.Windows.Forms.Control() {Me.btnGetCheckedIndices, Me.btnGetCheckedItems, Me.clb1, Me.btnAddItems})&lt;br /&gt;
        Me.Name = &amp;quot;Form1&amp;quot;&lt;br /&gt;
        Me.Text = &amp;quot;Form1&amp;quot;&lt;br /&gt;
        Me.ResumeLayout(False)&lt;br /&gt;
    End Sub&lt;br /&gt;
#End Region&lt;br /&gt;
    Private Sub btnAddItems_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnAddItems.Click&lt;br /&gt;
        clb1.Items.Add(&amp;quot;A&amp;quot;, True)&lt;br /&gt;
        clb1.Items.Add(&amp;quot;B&amp;quot;, True)&lt;br /&gt;
        clb1.Items.Add(&amp;quot;C&amp;quot;, True)&lt;br /&gt;
        clb1.Items.Add(&amp;quot;D&amp;quot;, False)&lt;br /&gt;
    End Sub&lt;br /&gt;
    Private Sub btnGetCheckedItems_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnGetCheckedItems.Click&lt;br /&gt;
        Dim o As Object&lt;br /&gt;
        For Each o In clb1.CheckedItems&lt;br /&gt;
            Console.WriteLine(o.ToString)&lt;br /&gt;
        Next o&lt;br /&gt;
        &lt;br /&gt;
    End Sub&lt;br /&gt;
    Private Sub btnGetCheckedIndices_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnGetCheckedIndices.Click&lt;br /&gt;
        Dim o As Object&lt;br /&gt;
        For Each o In clb1.CheckedIndices&lt;br /&gt;
            Console.WriteLine(o)&lt;br /&gt;
        Next o&lt;br /&gt;
    End Sub&lt;br /&gt;
End Class&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Checked List Box selection event==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;vbnet&amp;quot;&amp;gt;Imports System.Drawing&lt;br /&gt;
Imports System.Drawing.Drawing2D&lt;br /&gt;
Imports System.Windows.Forms&lt;br /&gt;
public class CheckBoxListAddValueSelectionEvent&lt;br /&gt;
   public Shared Sub Main&lt;br /&gt;
        Application.Run(New Form1)&lt;br /&gt;
   End Sub&lt;br /&gt;
End class&lt;br /&gt;
Public Class Form1&lt;br /&gt;
    Inherits System.Windows.Forms.Form&lt;br /&gt;
#Region &amp;quot; Windows Form Designer generated code &amp;quot;&lt;br /&gt;
    Public Sub New()&lt;br /&gt;
        MyBase.New()&lt;br /&gt;
        &amp;quot;This call is required by the Windows Form Designer.&lt;br /&gt;
        InitializeComponent()&lt;br /&gt;
        &amp;quot;Add any initialization after the InitializeComponent() call&lt;br /&gt;
    End Sub&lt;br /&gt;
    &amp;quot;Form overrides dispose to clean up the component list.&lt;br /&gt;
    Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)&lt;br /&gt;
        If disposing Then&lt;br /&gt;
            If Not (components Is Nothing) Then&lt;br /&gt;
                components.Dispose()&lt;br /&gt;
            End If&lt;br /&gt;
        End If&lt;br /&gt;
        MyBase.Dispose(disposing)&lt;br /&gt;
    End Sub&lt;br /&gt;
    &amp;quot;Required by the Windows Form Designer&lt;br /&gt;
    Private components As System.ruponentModel.IContainer&lt;br /&gt;
    &amp;quot;NOTE: The following procedure is required by the Windows Form Designer&lt;br /&gt;
    &amp;quot;It can be modified using the Windows Form Designer.  &lt;br /&gt;
    &amp;quot;Do not modify it using the code editor.&lt;br /&gt;
    Friend WithEvents CheckedListBox1 As System.Windows.Forms.CheckedListBox&lt;br /&gt;
    Friend WithEvents TextBox1 As System.Windows.Forms.TextBox&lt;br /&gt;
    &amp;lt;System.Diagnostics.DebuggerStepThrough()&amp;gt; Private Sub InitializeComponent()&lt;br /&gt;
        Me.CheckedListBox1 = New System.Windows.Forms.CheckedListBox&lt;br /&gt;
        Me.TextBox1 = New System.Windows.Forms.TextBox&lt;br /&gt;
        Me.SuspendLayout()&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;CheckedListBox1&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.CheckedListBox1.CheckOnClick = True&lt;br /&gt;
        Me.CheckedListBox1.Font = New System.Drawing.Font(&amp;quot;Microsoft Sans Serif&amp;quot;, 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))&lt;br /&gt;
        Me.CheckedListBox1.Location = New System.Drawing.Point(96, 6)&lt;br /&gt;
        Me.CheckedListBox1.Name = &amp;quot;CheckedListBox1&amp;quot;&lt;br /&gt;
        Me.CheckedListBox1.Size = New System.Drawing.Size(120, 150)&lt;br /&gt;
        Me.CheckedListBox1.TabIndex = 0&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;TextBox1&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.TextBox1.Font = New System.Drawing.Font(&amp;quot;Microsoft Sans Serif&amp;quot;, 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))&lt;br /&gt;
        Me.TextBox1.Location = New System.Drawing.Point(16, 184)&lt;br /&gt;
        Me.TextBox1.Name = &amp;quot;TextBox1&amp;quot;&lt;br /&gt;
        Me.TextBox1.Size = New System.Drawing.Size(296, 20)&lt;br /&gt;
        Me.TextBox1.TabIndex = 2&lt;br /&gt;
        Me.TextBox1.Text = &amp;quot;TextBox1&amp;quot;&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;Form1&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.AutoScaleBaseSize = New System.Drawing.Size(15, 37)&lt;br /&gt;
        Me.ClientSize = New System.Drawing.Size(336, 229)&lt;br /&gt;
        Me.Controls.Add(Me.TextBox1)&lt;br /&gt;
        Me.Controls.Add(Me.CheckedListBox1)&lt;br /&gt;
        Me.Font = New System.Drawing.Font(&amp;quot;Microsoft Sans Serif&amp;quot;, 24.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))&lt;br /&gt;
        Me.Name = &amp;quot;Form1&amp;quot;&lt;br /&gt;
        Me.Text = &amp;quot;Form1&amp;quot;&lt;br /&gt;
        Me.ResumeLayout(False)&lt;br /&gt;
    End Sub&lt;br /&gt;
#End Region&lt;br /&gt;
    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load&lt;br /&gt;
        CheckedListBox1.Items.Add(&amp;quot;Item 1&amp;quot;, True)&lt;br /&gt;
        CheckedListBox1.Items.Add(&amp;quot;Item 2&amp;quot;, True)&lt;br /&gt;
        CheckedListBox1.Items.Add(&amp;quot;Item 3&amp;quot;, True)&lt;br /&gt;
        CheckedListBox1.Items.Add(&amp;quot;Item 4&amp;quot;, False)&lt;br /&gt;
        CheckedListBox1.Items.Add(&amp;quot;Item 5&amp;quot;, True)&lt;br /&gt;
        CheckedListBox1.Items.Add(&amp;quot;Item 6&amp;quot;, True)&lt;br /&gt;
        CheckedListBox1.Items.Add(&amp;quot;Item 7&amp;quot;, True)&lt;br /&gt;
        CheckedListBox1.Items.Add(&amp;quot;Item 8&amp;quot;, False)&lt;br /&gt;
        CheckedListBox1.Items.Add(&amp;quot;Item 9&amp;quot;, True)&lt;br /&gt;
        CheckedListBox1.Items.Add(&amp;quot;Item 10&amp;quot;, True)&lt;br /&gt;
        CheckedListBox1.Items.Add(&amp;quot;Item 11&amp;quot;, True)&lt;br /&gt;
    End Sub&lt;br /&gt;
    Private Sub CheckedListBox1_ItemCheck(ByVal sender As Object, ByVal e As System.Windows.Forms.ItemCheckEventArgs) Handles CheckedListBox1.ItemCheck&lt;br /&gt;
        Select Case e.NewValue&lt;br /&gt;
            Case CheckState.Checked&lt;br /&gt;
                TextBox1.Text = &amp;quot;You checked Item &amp;quot; &amp;amp; e.Index&lt;br /&gt;
            Case CheckState.Unchecked&lt;br /&gt;
                TextBox1.Text = &amp;quot;You unchecked Item &amp;quot; &amp;amp; e.Index&lt;br /&gt;
        End Select&lt;br /&gt;
    End Sub&lt;br /&gt;
End Class&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Using the checked list boxes to add items to a list box==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;vbnet&amp;quot;&amp;gt;Imports System.Windows.Forms&lt;br /&gt;
public class CheckedListBoxAddRemove&lt;br /&gt;
   public Shared Sub Main&lt;br /&gt;
        Application.Run(New FrmCheckedListBox)&lt;br /&gt;
   End Sub&lt;br /&gt;
End class&lt;br /&gt;
Public Class FrmCheckedListBox&lt;br /&gt;
   Inherits Form&lt;br /&gt;
#Region &amp;quot; Windows Form Designer generated code &amp;quot;&lt;br /&gt;
   Public Sub New()&lt;br /&gt;
      MyBase.New()&lt;br /&gt;
      &amp;quot;This call is required by the Windows Form Designer.&lt;br /&gt;
      InitializeComponent()&lt;br /&gt;
      &amp;quot;Add any initialization after the InitializeComponent() call&lt;br /&gt;
   End Sub&lt;br /&gt;
   &amp;quot;Form overrides dispose to clean up the component list.&lt;br /&gt;
   Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)&lt;br /&gt;
      If disposing Then&lt;br /&gt;
         If Not (components Is Nothing) Then&lt;br /&gt;
            components.Dispose()&lt;br /&gt;
         End If&lt;br /&gt;
      End If&lt;br /&gt;
      MyBase.Dispose(disposing)&lt;br /&gt;
   End Sub&lt;br /&gt;
   &amp;quot; list of available book titles&lt;br /&gt;
   Friend WithEvents chklstInput As CheckedListBox&lt;br /&gt;
   &amp;quot; user selection list&lt;br /&gt;
   Friend WithEvents lstDisplay As ListBox&lt;br /&gt;
   &amp;quot;Required by the Windows Form Designer&lt;br /&gt;
   Private components As System.ruponentModel.Container&lt;br /&gt;
   &amp;quot;NOTE: The following procedure is required by the Windows Form Designer&lt;br /&gt;
   &amp;quot;It can be modified using the Windows Form Designer.  &lt;br /&gt;
   &amp;quot;Do not modify it using the code editor.&lt;br /&gt;
   &amp;lt;System.Diagnostics.DebuggerStepThrough()&amp;gt; Private Sub InitializeComponent()&lt;br /&gt;
      Me.chklstInput = New System.Windows.Forms.CheckedListBox()&lt;br /&gt;
      Me.lstDisplay = New System.Windows.Forms.ListBox()&lt;br /&gt;
      Me.SuspendLayout()&lt;br /&gt;
      &amp;quot;&lt;br /&gt;
      &amp;quot;chklstInput&lt;br /&gt;
      &amp;quot;&lt;br /&gt;
      Me.chklstInput.HorizontalScrollbar = True&lt;br /&gt;
      Me.chklstInput.Items.AddRange(New Object() {&amp;quot;A&amp;quot;, &amp;quot;B&amp;quot;, &amp;quot;C&amp;quot;, &amp;quot;D&amp;quot;, &amp;quot;E&amp;quot;, &amp;quot;F&amp;quot;, &amp;quot;G&amp;quot;, &amp;quot;H&amp;quot;})&lt;br /&gt;
      Me.chklstInput.Location = New System.Drawing.Point(16, 16)&lt;br /&gt;
      Me.chklstInput.Name = &amp;quot;chklstInput&amp;quot;&lt;br /&gt;
      Me.chklstInput.Size = New System.Drawing.Size(152, 124)&lt;br /&gt;
      Me.chklstInput.TabIndex = 1&lt;br /&gt;
      &amp;quot;&lt;br /&gt;
      &amp;quot;lstDisplay&lt;br /&gt;
      &amp;quot;&lt;br /&gt;
      Me.lstDisplay.Anchor = (System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right)&lt;br /&gt;
      Me.lstDisplay.HorizontalScrollbar = True&lt;br /&gt;
      Me.lstDisplay.Location = New System.Drawing.Point(184, 16)&lt;br /&gt;
      Me.lstDisplay.Name = &amp;quot;lstDisplay&amp;quot;&lt;br /&gt;
      Me.lstDisplay.Size = New System.Drawing.Size(128, 121)&lt;br /&gt;
      Me.lstDisplay.TabIndex = 2&lt;br /&gt;
      &amp;quot;&lt;br /&gt;
      &amp;quot;FrmCheckedListBox&lt;br /&gt;
      &amp;quot;&lt;br /&gt;
      Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)&lt;br /&gt;
      Me.ClientSize = New System.Drawing.Size(328, 157)&lt;br /&gt;
      Me.Controls.AddRange(New System.Windows.Forms.Control() {Me.lstDisplay, Me.chklstInput})&lt;br /&gt;
      Me.Name = &amp;quot;FrmCheckedListBox&amp;quot;&lt;br /&gt;
      Me.Text = &amp;quot;Checked List Box Test&amp;quot;&lt;br /&gt;
      Me.ResumeLayout(False)&lt;br /&gt;
   End Sub&lt;br /&gt;
#End Region&lt;br /&gt;
   Private Sub chklstInput_ItemCheck _&lt;br /&gt;
      (ByVal sender As System.Object, _&lt;br /&gt;
      ByVal e As System.Windows.Forms.ItemCheckEventArgs) _&lt;br /&gt;
      Handles chklstInput.ItemCheck&lt;br /&gt;
      Dim item As String = chklstInput.SelectedItem&lt;br /&gt;
      If e.NewValue = CheckState.Checked Then&lt;br /&gt;
         lstDisplay.Items.Add(item)&lt;br /&gt;
      Else&lt;br /&gt;
         lstDisplay.Items.Remove(item)&lt;br /&gt;
      End If&lt;br /&gt;
   End Sub&lt;br /&gt;
End Class&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	</feed>