<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
		<id>http://nfex.ru/index.php?action=history&amp;feed=atom&amp;title=Csharp%2FC_Sharp%2FGUI_Windows_Form%2FCheckBox_List</id>
		<title>Csharp/C Sharp/GUI Windows Form/CheckBox List - История изменений</title>
		<link rel="self" type="application/atom+xml" href="http://nfex.ru/index.php?action=history&amp;feed=atom&amp;title=Csharp%2FC_Sharp%2FGUI_Windows_Form%2FCheckBox_List"/>
		<link rel="alternate" type="text/html" href="http://nfex.ru/index.php?title=Csharp/C_Sharp/GUI_Windows_Form/CheckBox_List&amp;action=history"/>
		<updated>2026-04-30T02:53:09Z</updated>
		<subtitle>История изменений этой страницы в вики</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://nfex.ru/index.php?title=Csharp/C_Sharp/GUI_Windows_Form/CheckBox_List&amp;diff=138&amp;oldid=prev</id>
		<title> в 15:31, 26 мая 2010</title>
		<link rel="alternate" type="text/html" href="http://nfex.ru/index.php?title=Csharp/C_Sharp/GUI_Windows_Form/CheckBox_List&amp;diff=138&amp;oldid=prev"/>
				<updated>2010-05-26T15:31:18Z</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;Версия 15:31, 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://nfex.ru/index.php?title=Csharp/C_Sharp/GUI_Windows_Form/CheckBox_List&amp;diff=139&amp;oldid=prev</id>
		<title>Admin: 1 версия</title>
		<link rel="alternate" type="text/html" href="http://nfex.ru/index.php?title=Csharp/C_Sharp/GUI_Windows_Form/CheckBox_List&amp;diff=139&amp;oldid=prev"/>
				<updated>2010-05-26T11:33:26Z</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;==CheckedListBox Item Check event==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;&lt;br /&gt;
using System;&lt;br /&gt;
using System.Collections.Generic;&lt;br /&gt;
using System.ruponentModel;&lt;br /&gt;
using System.Data;&lt;br /&gt;
using System.Drawing;&lt;br /&gt;
using System.Text;&lt;br /&gt;
using System.Windows.Forms;&lt;br /&gt;
public class Form1 : Form&lt;br /&gt;
{&lt;br /&gt;
      private System.Windows.Forms.CheckedListBox inputCheckedListBox;&lt;br /&gt;
      private System.Windows.Forms.ListBox displayListBox;&lt;br /&gt;
    &lt;br /&gt;
    public Form1() {&lt;br /&gt;
         InitializeComponent();&lt;br /&gt;
    }&lt;br /&gt;
      private void inputCheckedListBox_ItemCheck(object sender, ItemCheckEventArgs e )&lt;br /&gt;
      {&lt;br /&gt;
         string item = inputCheckedListBox.SelectedItem.ToString();&lt;br /&gt;
         if ( e.NewValue == CheckState.Checked )&lt;br /&gt;
            displayListBox.Items.Add( item );&lt;br /&gt;
         else&lt;br /&gt;
            displayListBox.Items.Remove( item );&lt;br /&gt;
      }&lt;br /&gt;
      private void InitializeComponent()&lt;br /&gt;
      {&lt;br /&gt;
         this.inputCheckedListBox = new System.Windows.Forms.CheckedListBox();&lt;br /&gt;
         this.displayListBox = new System.Windows.Forms.ListBox();&lt;br /&gt;
         this.SuspendLayout();&lt;br /&gt;
         // &lt;br /&gt;
         // inputCheckedListBox&lt;br /&gt;
         // &lt;br /&gt;
         this.inputCheckedListBox.Font = new System.Drawing.Font(&amp;quot;Microsoft Sans Serif&amp;quot;, 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));&lt;br /&gt;
         this.inputCheckedListBox.FormattingEnabled = true;&lt;br /&gt;
         this.inputCheckedListBox.Items.AddRange(new object[] {&lt;br /&gt;
            &amp;quot;A&amp;quot;,&lt;br /&gt;
            &amp;quot;B&amp;quot;,&lt;br /&gt;
            &amp;quot;C&amp;quot;,&lt;br /&gt;
            &amp;quot;D&amp;quot;,&lt;br /&gt;
            &amp;quot;E&amp;quot;,&lt;br /&gt;
            &amp;quot;F&amp;quot;,&lt;br /&gt;
            &amp;quot;G&amp;quot;,&lt;br /&gt;
            &amp;quot;H&amp;quot;});&lt;br /&gt;
         this.inputCheckedListBox.Location = new System.Drawing.Point(17, 12);&lt;br /&gt;
         this.inputCheckedListBox.Name = &amp;quot;inputCheckedListBox&amp;quot;;&lt;br /&gt;
         this.inputCheckedListBox.Size = new System.Drawing.Size(202, 188);&lt;br /&gt;
         this.inputCheckedListBox.TabIndex = 0;&lt;br /&gt;
         this.inputCheckedListBox.ItemCheck += new System.Windows.Forms.ItemCheckEventHandler(this.inputCheckedListBox_ItemCheck);&lt;br /&gt;
         // &lt;br /&gt;
         // displayListBox&lt;br /&gt;
         // &lt;br /&gt;
         this.displayListBox.Font = new System.Drawing.Font(&amp;quot;Microsoft Sans Serif&amp;quot;, 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));&lt;br /&gt;
         this.displayListBox.FormattingEnabled = true;&lt;br /&gt;
         this.displayListBox.ItemHeight = 20;&lt;br /&gt;
         this.displayListBox.Location = new System.Drawing.Point(236, 12);&lt;br /&gt;
         this.displayListBox.Name = &amp;quot;displayListBox&amp;quot;;&lt;br /&gt;
         this.displayListBox.Size = new System.Drawing.Size(190, 184);&lt;br /&gt;
         this.displayListBox.TabIndex = 1;&lt;br /&gt;
         // &lt;br /&gt;
         // CheckedListBoxTestForm&lt;br /&gt;
         // &lt;br /&gt;
         this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);&lt;br /&gt;
         this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;&lt;br /&gt;
         this.ClientSize = new System.Drawing.Size(438, 211);&lt;br /&gt;
         this.Controls.Add(this.displayListBox);&lt;br /&gt;
         this.Controls.Add(this.inputCheckedListBox);&lt;br /&gt;
         this.Name = &amp;quot;CheckedListBoxTestForm&amp;quot;;&lt;br /&gt;
         this.Text = &amp;quot;CheckedListBoxTest&amp;quot;;&lt;br /&gt;
         this.ResumeLayout(false);&lt;br /&gt;
      }&lt;br /&gt;
  [STAThread]&lt;br /&gt;
  static void Main()&lt;br /&gt;
  {&lt;br /&gt;
    Application.EnableVisualStyles();&lt;br /&gt;
    Application.Run(new Form1());&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
           &lt;br /&gt;
       &amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Get selected checkbox list items==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;&lt;br /&gt;
using System;&lt;br /&gt;
using System.Drawing;&lt;br /&gt;
using System.Collections;&lt;br /&gt;
using System.ruponentModel;&lt;br /&gt;
using System.Windows.Forms;&lt;br /&gt;
using System.Data;&lt;br /&gt;
public class Form1 : System.Windows.Forms.Form {&lt;br /&gt;
   private System.Windows.Forms.CheckedListBox chkListPossibleValues;&lt;br /&gt;
   private System.Windows.Forms.ListBox lstSelected;&lt;br /&gt;
   private System.Windows.Forms.Button btnMove;&lt;br /&gt;
   private System.ruponentModel.Container components=null;&lt;br /&gt;
   public Form1() {&lt;br /&gt;
      InitializeComponent();&lt;br /&gt;
      this.chkListPossibleValues.Items.Add(&amp;quot;Ten&amp;quot;);&lt;br /&gt;
   }&lt;br /&gt;
   private void InitializeComponent() {&lt;br /&gt;
      this.lstSelected = new System.Windows.Forms.ListBox();&lt;br /&gt;
      this.btnMove = new System.Windows.Forms.Button();&lt;br /&gt;
      this.chkListPossibleValues = new System.Windows.Forms.CheckedListBox();&lt;br /&gt;
      this.SuspendLayout();&lt;br /&gt;
  &lt;br /&gt;
      this.lstSelected.Location = new System.Drawing.Point(232, 8);&lt;br /&gt;
      this.lstSelected.Name = &amp;quot;lstSelected&amp;quot;;&lt;br /&gt;
      this.lstSelected.Size = new System.Drawing.Size(136, 186);&lt;br /&gt;
      this.lstSelected.TabIndex = 1;&lt;br /&gt;
      this.btnMove.Location = new System.Drawing.Point(152, 80);&lt;br /&gt;
      this.btnMove.Name = &amp;quot;btnMove&amp;quot;;&lt;br /&gt;
      this.btnMove.TabIndex = 3;&lt;br /&gt;
      this.btnMove.Text = &amp;quot;Move&amp;quot;;&lt;br /&gt;
      this.btnMove.Click += new System.EventHandler(this.btnMove_Click);&lt;br /&gt;
      this.chkListPossibleValues.CheckOnClick = true;&lt;br /&gt;
      this.chkListPossibleValues.Items.AddRange(new object[] {&amp;quot;One&amp;quot;, &amp;quot;Two&amp;quot;, &amp;quot;Three&amp;quot;,&lt;br /&gt;
                  &amp;quot;Four&amp;quot;, &amp;quot;Five&amp;quot;,&amp;quot;Six&amp;quot;,&amp;quot;Seven&amp;quot;, &amp;quot;Eight&amp;quot;, &amp;quot;Nine&amp;quot;});&lt;br /&gt;
      this.chkListPossibleValues.Location = new System.Drawing.Point(8, 8);&lt;br /&gt;
      this.chkListPossibleValues.Name = &amp;quot;chkListPossibleValues&amp;quot;;&lt;br /&gt;
      this.chkListPossibleValues.Size = new System.Drawing.Size(136, 184);&lt;br /&gt;
      this.chkListPossibleValues.TabIndex = 0;&lt;br /&gt;
      this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);&lt;br /&gt;
      this.ClientSize = new System.Drawing.Size(376, 205);&lt;br /&gt;
      this.Controls.AddRange(new System.Windows.Forms.Control[] {this.btnMove,&lt;br /&gt;
                                  this.lstSelected,  this.chkListPossibleValues});&lt;br /&gt;
      this.Name = &amp;quot;Form1&amp;quot;;&lt;br /&gt;
      this.Text = &amp;quot;List Boxes&amp;quot;;&lt;br /&gt;
      this.ResumeLayout(false);&lt;br /&gt;
      }&lt;br /&gt;
      static void Main() {&lt;br /&gt;
         Application.Run(new Form1());&lt;br /&gt;
      }&lt;br /&gt;
      private void btnMove_Click(object sender, System.EventArgs e) {&lt;br /&gt;
         if (this.chkListPossibleValues.CheckedItems.Count &amp;gt; 0) {&lt;br /&gt;
            this.lstSelected.Items.Clear();&lt;br /&gt;
            foreach (string item in this.chkListPossibleValues.CheckedItems) {&lt;br /&gt;
                this.lstSelected.Items.Add(item.ToString());&lt;br /&gt;
            }&lt;br /&gt;
            for (int i = 0; i &amp;lt; this.chkListPossibleValues.Items.Count; i++){&lt;br /&gt;
                 this.chkListPossibleValues.SetItemChecked(i, false);&lt;br /&gt;
            }     &lt;br /&gt;
         }&lt;br /&gt;
      }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
           &lt;br /&gt;
       &amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	</feed>