<?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%2FGUI%2FCheckBox</id>
		<title>VB.Net/GUI/CheckBox - История изменений</title>
		<link rel="self" type="application/atom+xml" href="http://www.vbex.ru/index.php?action=history&amp;feed=atom&amp;title=VB.Net%2FGUI%2FCheckBox"/>
		<link rel="alternate" type="text/html" href="http://www.vbex.ru/index.php?title=VB.Net/GUI/CheckBox&amp;action=history"/>
		<updated>2026-04-05T15:54:00Z</updated>
		<subtitle>История изменений этой страницы в вики</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://www.vbex.ru/index.php?title=VB.Net/GUI/CheckBox&amp;diff=462&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/GUI/CheckBox&amp;diff=462&amp;oldid=prev"/>
				<updated>2010-05-26T16:40:06Z</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/GUI/CheckBox&amp;diff=463&amp;oldid=prev</id>
		<title>Admin: 1 версия</title>
		<link rel="alternate" type="text/html" href="http://www.vbex.ru/index.php?title=VB.Net/GUI/CheckBox&amp;diff=463&amp;oldid=prev"/>
				<updated>2010-05-26T12:43:11Z</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;==Get CheckBox Selection state==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;vbnet&amp;quot;&amp;gt;&lt;br /&gt;
Imports System.Windows.Forms&lt;br /&gt;
&lt;br /&gt;
Module Module1&lt;br /&gt;
    Sub Main()&lt;br /&gt;
        Application.Run(New Form1)&lt;br /&gt;
    End Sub&lt;br /&gt;
End Module&lt;br /&gt;
&lt;br /&gt;
&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 CheckBox1 As System.Windows.Forms.CheckBox&lt;br /&gt;
    Friend WithEvents CheckBox2 As System.Windows.Forms.CheckBox&lt;br /&gt;
    Friend WithEvents CheckBox3 As System.Windows.Forms.CheckBox&lt;br /&gt;
    Friend WithEvents Label1 As System.Windows.Forms.Label&lt;br /&gt;
    &amp;lt;System.Diagnostics.DebuggerStepThrough()&amp;gt; Private Sub InitializeComponent()&lt;br /&gt;
        Me.CheckBox1 = New System.Windows.Forms.CheckBox()&lt;br /&gt;
        Me.CheckBox2 = New System.Windows.Forms.CheckBox()&lt;br /&gt;
        Me.CheckBox3 = New System.Windows.Forms.CheckBox()&lt;br /&gt;
        Me.Label1 = New System.Windows.Forms.Label()&lt;br /&gt;
        Me.SuspendLayout()&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;CheckBox1&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.CheckBox1.Location = New System.Drawing.Point(24, 32)&lt;br /&gt;
        Me.CheckBox1.Name = &amp;quot;CheckBox1&amp;quot;&lt;br /&gt;
        Me.CheckBox1.TabIndex = 0&lt;br /&gt;
        Me.CheckBox1.Text = &amp;quot;Item 1 &amp;quot;&lt;br /&gt;
        Me.CheckBox1.ThreeState = True&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;CheckBox2&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.CheckBox2.Location = New System.Drawing.Point(24, 72)&lt;br /&gt;
        Me.CheckBox2.Name = &amp;quot;CheckBox2&amp;quot;&lt;br /&gt;
        Me.CheckBox2.Size = New System.Drawing.Size(136, 24)&lt;br /&gt;
        Me.CheckBox2.TabIndex = 1&lt;br /&gt;
        Me.CheckBox2.Text = &amp;quot;Item 2 &amp;quot;&lt;br /&gt;
        Me.CheckBox2.ThreeState = True&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;CheckBox3&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.CheckBox3.Location = New System.Drawing.Point(24, 112)&lt;br /&gt;
        Me.CheckBox3.Name = &amp;quot;CheckBox3&amp;quot;&lt;br /&gt;
        Me.CheckBox3.Size = New System.Drawing.Size(144, 24)&lt;br /&gt;
        Me.CheckBox3.TabIndex = 2&lt;br /&gt;
        Me.CheckBox3.Text = &amp;quot;Item 3&amp;quot;&lt;br /&gt;
        Me.CheckBox3.ThreeState = True&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;Label1&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.Label1.Location = New System.Drawing.Point(32, 176)&lt;br /&gt;
        Me.Label1.Name = &amp;quot;Label1&amp;quot;&lt;br /&gt;
        Me.Label1.Size = New System.Drawing.Size(224, 56)&lt;br /&gt;
        Me.Label1.TabIndex = 3&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(292, 273)&lt;br /&gt;
        Me.Controls.AddRange(New System.Windows.Forms.Control() {Me.Label1, Me.CheckBox3, Me.CheckBox2, Me.CheckBox1})&lt;br /&gt;
        Me.Name = &amp;quot;Form1&amp;quot;&lt;br /&gt;
        Me.Text = &amp;quot;CheckBoxDemo&amp;quot;&lt;br /&gt;
        Me.ResumeLayout(False)&lt;br /&gt;
    End Sub&lt;br /&gt;
#End Region&lt;br /&gt;
    Private Sub CheckBox1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles CheckBox1.Click, CheckBox2.Click, CheckBox3.Click&lt;br /&gt;
        Label1.Text = &amp;quot;Choices: &amp;quot;&lt;br /&gt;
        If (CheckBox1.Checked) Then&lt;br /&gt;
            Label1.Text = Label1.Text &amp;amp; &amp;quot; &amp;quot; &amp;amp; CheckBox1.Text&lt;br /&gt;
        End If&lt;br /&gt;
        If (CheckBox1.CheckState = CheckState.Indeterminate) Then&lt;br /&gt;
            Label1.Text = Label1.Text &amp;amp; &amp;quot; &amp;quot; &amp;amp; CheckBox1.Text &amp;amp; &amp;quot; (I)&amp;quot;&lt;br /&gt;
        End If&lt;br /&gt;
        If (CheckBox2.Checked) Then&lt;br /&gt;
            Label1.Text = Label1.Text &amp;amp; &amp;quot; &amp;quot; &amp;amp; CheckBox2.Text&lt;br /&gt;
        End If&lt;br /&gt;
        If (CheckBox2.CheckState = CheckState.Indeterminate) Then&lt;br /&gt;
            Label1.Text = Label1.Text &amp;amp; &amp;quot; &amp;quot; &amp;amp; CheckBox2.Text &amp;amp; &amp;quot; (I)&amp;quot;&lt;br /&gt;
        End If&lt;br /&gt;
        If (CheckBox3.Checked) Then&lt;br /&gt;
            Label1.Text = Label1.Text &amp;amp; &amp;quot; &amp;quot; &amp;amp; CheckBox3.Text&lt;br /&gt;
        End If&lt;br /&gt;
        If (CheckBox3.CheckState = CheckState.Indeterminate) Then&lt;br /&gt;
            Label1.Text = Label1.Text &amp;amp; &amp;quot; &amp;quot; &amp;amp; CheckBox3.Text &amp;amp; &amp;quot; (I)&amp;quot;&lt;br /&gt;
        End If&lt;br /&gt;
        Label1.Refresh()&lt;br /&gt;
    End Sub&lt;br /&gt;
End Class&lt;br /&gt;
           &lt;br /&gt;
       &amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Using CheckBoxes to toggle italic and bold styles==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;vbnet&amp;quot;&amp;gt;&lt;br /&gt;
Imports System&lt;br /&gt;
Imports System.Drawing&lt;br /&gt;
Imports System.Windows.Forms&lt;br /&gt;
Public Class MainClass&lt;br /&gt;
   Shared Sub Main()&lt;br /&gt;
        Dim myform As Form = New FrmCheckBox()&lt;br /&gt;
        Application.Run(myform)&lt;br /&gt;
   End Sub &amp;quot; Main&lt;br /&gt;
End Class&lt;br /&gt;
Public Class FrmCheckBox&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;
   Friend WithEvents chkItalic As System.Windows.Forms.CheckBox&lt;br /&gt;
   Friend WithEvents lblOutput As System.Windows.Forms.Label&lt;br /&gt;
   Friend WithEvents chkBold As System.Windows.Forms.CheckBox&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.lblOutput = New System.Windows.Forms.Label()&lt;br /&gt;
      Me.chkItalic = New System.Windows.Forms.CheckBox()&lt;br /&gt;
      Me.chkBold = New System.Windows.Forms.CheckBox()&lt;br /&gt;
      Me.SuspendLayout()&lt;br /&gt;
      &amp;quot;&lt;br /&gt;
      &amp;quot;lblOutput&lt;br /&gt;
      &amp;quot;&lt;br /&gt;
      Me.lblOutput.Font = New System.Drawing.Font(&amp;quot;Microsoft Sans Serif&amp;quot;, 11.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))&lt;br /&gt;
      Me.lblOutput.Location = New System.Drawing.Point(48, 24)&lt;br /&gt;
      Me.lblOutput.Name = &amp;quot;lblOutput&amp;quot;&lt;br /&gt;
      Me.lblOutput.Size = New System.Drawing.Size(208, 24)&lt;br /&gt;
      Me.lblOutput.TabIndex = 0&lt;br /&gt;
      Me.lblOutput.Text = &amp;quot;Watch the font style change&amp;quot;&lt;br /&gt;
      &amp;quot;&lt;br /&gt;
      &amp;quot;chkItalic&lt;br /&gt;
      &amp;quot;&lt;br /&gt;
      Me.chkItalic.Font = New System.Drawing.Font(&amp;quot;Microsoft Sans Serif&amp;quot;, 9.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))&lt;br /&gt;
      Me.chkItalic.Location = New System.Drawing.Point(152, 64)&lt;br /&gt;
      Me.chkItalic.Name = &amp;quot;chkItalic&amp;quot;&lt;br /&gt;
      Me.chkItalic.Size = New System.Drawing.Size(64, 24)&lt;br /&gt;
      Me.chkItalic.TabIndex = 2&lt;br /&gt;
      Me.chkItalic.Text = &amp;quot;Italic&amp;quot;&lt;br /&gt;
      &amp;quot;&lt;br /&gt;
      &amp;quot;chkBold&lt;br /&gt;
      &amp;quot;&lt;br /&gt;
      Me.chkBold.Font = New System.Drawing.Font(&amp;quot;Microsoft Sans Serif&amp;quot;, 9.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))&lt;br /&gt;
      Me.chkBold.Location = New System.Drawing.Point(80, 64)&lt;br /&gt;
      Me.chkBold.Name = &amp;quot;chkBold&amp;quot;&lt;br /&gt;
      Me.chkBold.Size = New System.Drawing.Size(56, 24)&lt;br /&gt;
      Me.chkBold.TabIndex = 1&lt;br /&gt;
      Me.chkBold.Text = &amp;quot;Bold&amp;quot;&lt;br /&gt;
      &amp;quot;&lt;br /&gt;
      &amp;quot;FrmCheckBox&lt;br /&gt;
      &amp;quot;&lt;br /&gt;
      Me.AutoScaleBaseSize = New System.Drawing.Size(6, 14)&lt;br /&gt;
      Me.ClientSize = New System.Drawing.Size(292, 117)&lt;br /&gt;
      Me.Controls.AddRange(New System.Windows.Forms.Control() {Me.chkItalic, Me.chkBold, Me.lblOutput})&lt;br /&gt;
      Me.Font = New System.Drawing.Font(&amp;quot;Microsoft Sans Serif&amp;quot;, 9!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))&lt;br /&gt;
      Me.Name = &amp;quot;FrmCheckBox&amp;quot;&lt;br /&gt;
      Me.Text = &amp;quot;CheckBoxTest&amp;quot;&lt;br /&gt;
      Me.ResumeLayout(False)&lt;br /&gt;
   End Sub&lt;br /&gt;
#End Region&lt;br /&gt;
   &amp;quot; use Xor to toggle italic, keep other styles same&lt;br /&gt;
   Private Sub chkItalic_CheckedChanged _&lt;br /&gt;
      (ByVal sender As System.Object, ByVal e As System.EventArgs) _&lt;br /&gt;
      Handles chkItalic.CheckedChanged&lt;br /&gt;
      lblOutput.Font = New Font(lblOutput.Font.Name, _&lt;br /&gt;
         lblOutput.Font.Size, lblOutput.Font.Style _&lt;br /&gt;
         Xor FontStyle.Italic)&lt;br /&gt;
   End Sub &amp;quot; chkItalic_CheckedChanged&lt;br /&gt;
   &amp;quot; use Xor to toggle bold, keep other styles same&lt;br /&gt;
   Private Sub chkBold_CheckedChanged _&lt;br /&gt;
      (ByVal sender As System.Object, ByVal e As System.EventArgs) _&lt;br /&gt;
      Handles chkBold.CheckedChanged&lt;br /&gt;
      lblOutput.Font = New Font(lblOutput.Font.Name, _&lt;br /&gt;
         lblOutput.Font.Size, lblOutput.Font.Style _&lt;br /&gt;
         Xor FontStyle.Bold)&lt;br /&gt;
   End Sub &lt;br /&gt;
End Class&lt;br /&gt;
           &lt;br /&gt;
       &amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	</feed>