<?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%2FControl_Event</id>
		<title>VB.Net Tutorial/GUI/Control Event - История изменений</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%2FControl_Event"/>
		<link rel="alternate" type="text/html" href="http://www.vbex.ru/index.php?title=VB.Net_Tutorial/GUI/Control_Event&amp;action=history"/>
		<updated>2026-04-05T06:50:08Z</updated>
		<subtitle>История изменений этой страницы в вики</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://www.vbex.ru/index.php?title=VB.Net_Tutorial/GUI/Control_Event&amp;diff=3872&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/Control_Event&amp;diff=3872&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/Control_Event&amp;diff=3873&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/Control_Event&amp;diff=3873&amp;oldid=prev"/>
				<updated>2010-05-26T12:57:16Z</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;==A simple event handler==&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 GenericEventHandler&lt;br /&gt;
   public Shared Sub Main&lt;br /&gt;
        Application.Run(New FrmSimple)&lt;br /&gt;
   End Sub&lt;br /&gt;
End class&lt;br /&gt;
&lt;br /&gt;
Public Class FrmSimple&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;
&lt;br /&gt;
      &amp;quot; Add any initialization after the &lt;br /&gt;
      &amp;quot; InitializeComponent() call&lt;br /&gt;
   End Sub &amp;quot; New&lt;br /&gt;
   &amp;quot; Form overrides dispose to clean up the component list.&lt;br /&gt;
   Protected Overloads Overrides Sub Dispose( _&lt;br /&gt;
      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 &amp;quot; Dispose&lt;br /&gt;
   Friend WithEvents lblOutput As System.Windows.Forms.Label&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 &lt;br /&gt;
   &amp;quot; 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; _&lt;br /&gt;
      Private Sub InitializeComponent()&lt;br /&gt;
      Me.lblOutput = New System.Windows.Forms.Label()&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.Location = New System.Drawing.Point(16, 16)&lt;br /&gt;
      Me.lblOutput.Name = &amp;quot;lblOutput&amp;quot;&lt;br /&gt;
      Me.lblOutput.Size = New System.Drawing.Size(152, 80)&lt;br /&gt;
      Me.lblOutput.TabIndex = 0&lt;br /&gt;
      Me.lblOutput.Text = &amp;quot;Click Me!&amp;quot;&lt;br /&gt;
      Me.lblOutput.TextAlign = System.Drawing.ContentAlignment.MiddleCenter&lt;br /&gt;
      &amp;quot;&lt;br /&gt;
      &amp;quot;FrmSimple&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(176, 101)&lt;br /&gt;
      Me.Controls.AddRange(New System.Windows.Forms.Control() {Me.lblOutput})&lt;br /&gt;
      Me.Name = &amp;quot;FrmSimple&amp;quot;&lt;br /&gt;
      Me.Text = &amp;quot;SimpleEventExample&amp;quot;&lt;br /&gt;
      Me.ResumeLayout(False)&lt;br /&gt;
   End Sub&lt;br /&gt;
#End Region&lt;br /&gt;
   Private Sub lblOutput_Click(ByVal sender As Object, _&lt;br /&gt;
      ByVal e As System.EventArgs) Handles lblOutput.Click&lt;br /&gt;
      MessageBox.Show(&amp;quot;Label was clicked&amp;quot;)&lt;br /&gt;
   End Sub &lt;br /&gt;
End Class&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Handle multiple event handlers from different controls==&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 HandleMultipleEventsFromDifferentControls&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;
    Private Sub MultipleEvents(ByVal sender As Object, _&lt;br /&gt;
            ByVal e As System.EventArgs) Handles _&lt;br /&gt;
            TextBox1.Enter, TextBox2.Enter, TextBox3.Enter, _&lt;br /&gt;
            TextBox1.TextChanged, TextBox2.TextChanged, TextBox3.TextChanged&lt;br /&gt;
        &lt;br /&gt;
        Dim activeControl As TextBox&lt;br /&gt;
        activeControl = CType(sender, TextBox)&lt;br /&gt;
        ShowInfo.Text = &amp;quot;TextField #&amp;quot; &amp;amp; _&lt;br /&gt;
            activeControl.Name &amp;amp; _&lt;br /&gt;
            &amp;quot;, &amp;quot; &amp;amp; activeControl.Text.Length &amp;amp; &amp;quot; character(s)&amp;quot;&lt;br /&gt;
    End Sub&lt;br /&gt;
End Class&lt;br /&gt;
&lt;br /&gt;
&amp;lt;Global.Microsoft.VisualBasic.rupilerServices.DesignerGenerated()&amp;gt; _&lt;br /&gt;
Partial Class Form1&lt;br /&gt;
    Inherits System.Windows.Forms.Form&lt;br /&gt;
    &amp;quot;Form overrides dispose to clean up the component list.&lt;br /&gt;
    &amp;lt;System.Diagnostics.DebuggerNonUserCode()&amp;gt; _&lt;br /&gt;
    Protected Overrides Sub Dispose(ByVal disposing As Boolean)&lt;br /&gt;
        If disposing AndAlso components IsNot Nothing Then&lt;br /&gt;
            components.Dispose()&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;
    &amp;lt;System.Diagnostics.DebuggerStepThrough()&amp;gt; _&lt;br /&gt;
    Private Sub InitializeComponent()&lt;br /&gt;
        Me.TextBox1 = New System.Windows.Forms.TextBox&lt;br /&gt;
        Me.Label1 = New System.Windows.Forms.Label&lt;br /&gt;
        Me.Label2 = New System.Windows.Forms.Label&lt;br /&gt;
        Me.TextBox2 = New System.Windows.Forms.TextBox&lt;br /&gt;
        Me.Label3 = New System.Windows.Forms.Label&lt;br /&gt;
        Me.TextBox3 = New System.Windows.Forms.TextBox&lt;br /&gt;
        Me.Label4 = New System.Windows.Forms.Label&lt;br /&gt;
        Me.ShowInfo = New System.Windows.Forms.Label&lt;br /&gt;
        Me.SuspendLayout()&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;TextBox1&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.TextBox1.Location = New System.Drawing.Point(120, 8)&lt;br /&gt;
        Me.TextBox1.Name = &amp;quot;TextBox1&amp;quot;&lt;br /&gt;
        Me.TextBox1.Size = New System.Drawing.Size(160, 20)&lt;br /&gt;
        Me.TextBox1.TabIndex = 1&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;Label1&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.Label1.AutoSize = True&lt;br /&gt;
        Me.Label1.Location = New System.Drawing.Point(8, 10)&lt;br /&gt;
        Me.Label1.Name = &amp;quot;Label1&amp;quot;&lt;br /&gt;
        Me.Label1.Size = New System.Drawing.Size(93, 13)&lt;br /&gt;
        Me.Label1.TabIndex = 0&lt;br /&gt;
        Me.Label1.Text = &amp;quot;Text Box Field #1:&amp;quot;&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;Label2&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.Label2.AutoSize = True&lt;br /&gt;
        Me.Label2.Location = New System.Drawing.Point(8, 42)&lt;br /&gt;
        Me.Label2.Name = &amp;quot;Label2&amp;quot;&lt;br /&gt;
        Me.Label2.Size = New System.Drawing.Size(93, 13)&lt;br /&gt;
        Me.Label2.TabIndex = 2&lt;br /&gt;
        Me.Label2.Text = &amp;quot;Text Box Field #2:&amp;quot;&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;TextBox2&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.TextBox2.Location = New System.Drawing.Point(120, 40)&lt;br /&gt;
        Me.TextBox2.Name = &amp;quot;TextBox2&amp;quot;&lt;br /&gt;
        Me.TextBox2.Size = New System.Drawing.Size(160, 20)&lt;br /&gt;
        Me.TextBox2.TabIndex = 3&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;Label3&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.Label3.AutoSize = True&lt;br /&gt;
        Me.Label3.Location = New System.Drawing.Point(9, 72)&lt;br /&gt;
        Me.Label3.Name = &amp;quot;Label3&amp;quot;&lt;br /&gt;
        Me.Label3.Size = New System.Drawing.Size(93, 13)&lt;br /&gt;
        Me.Label3.TabIndex = 4&lt;br /&gt;
        Me.Label3.Text = &amp;quot;Text Box Field #3:&amp;quot;&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;TextBox3&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.TextBox3.Location = New System.Drawing.Point(121, 70)&lt;br /&gt;
        Me.TextBox3.Name = &amp;quot;TextBox3&amp;quot;&lt;br /&gt;
        Me.TextBox3.Size = New System.Drawing.Size(159, 20)&lt;br /&gt;
        Me.TextBox3.TabIndex = 5&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;Label4&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.Label4.AutoSize = True&lt;br /&gt;
        Me.Label4.Location = New System.Drawing.Point(8, 104)&lt;br /&gt;
        Me.Label4.Name = &amp;quot;Label4&amp;quot;&lt;br /&gt;
        Me.Label4.Size = New System.Drawing.Size(62, 13)&lt;br /&gt;
        Me.Label4.TabIndex = 6&lt;br /&gt;
        Me.Label4.Text = &amp;quot;Information:&amp;quot;&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;ShowInfo&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.ShowInfo.AutoSize = True&lt;br /&gt;
        Me.ShowInfo.Location = New System.Drawing.Point(120, 104)&lt;br /&gt;
        Me.ShowInfo.Name = &amp;quot;ShowInfo&amp;quot;&lt;br /&gt;
        Me.ShowInfo.Size = New System.Drawing.Size(27, 13)&lt;br /&gt;
        Me.ShowInfo.TabIndex = 7&lt;br /&gt;
        Me.ShowInfo.Text = &amp;quot;N/A&amp;quot;&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;Form1&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)&lt;br /&gt;
        Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font&lt;br /&gt;
        Me.ClientSize = New System.Drawing.Size(320, 136)&lt;br /&gt;
        Me.Controls.Add(Me.ShowInfo)&lt;br /&gt;
        Me.Controls.Add(Me.Label4)&lt;br /&gt;
        Me.Controls.Add(Me.Label3)&lt;br /&gt;
        Me.Controls.Add(Me.TextBox3)&lt;br /&gt;
        Me.Controls.Add(Me.Label2)&lt;br /&gt;
        Me.Controls.Add(Me.TextBox2)&lt;br /&gt;
        Me.Controls.Add(Me.Label1)&lt;br /&gt;
        Me.Controls.Add(Me.TextBox1)&lt;br /&gt;
        Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle&lt;br /&gt;
        Me.MaximizeBox = False&lt;br /&gt;
        Me.Name = &amp;quot;Form1&amp;quot;&lt;br /&gt;
        Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen&lt;br /&gt;
        Me.Text = &amp;quot;Sharing Control Logic&amp;quot;&lt;br /&gt;
        Me.ResumeLayout(False)&lt;br /&gt;
        Me.PerformLayout()&lt;br /&gt;
    End Sub&lt;br /&gt;
    Friend WithEvents TextBox1 As System.Windows.Forms.TextBox&lt;br /&gt;
    Friend WithEvents Label1 As System.Windows.Forms.Label&lt;br /&gt;
    Friend WithEvents Label2 As System.Windows.Forms.Label&lt;br /&gt;
    Friend WithEvents TextBox2 As System.Windows.Forms.TextBox&lt;br /&gt;
    Friend WithEvents Label3 As System.Windows.Forms.Label&lt;br /&gt;
    Friend WithEvents TextBox3 As System.Windows.Forms.TextBox&lt;br /&gt;
    Friend WithEvents Label4 As System.Windows.Forms.Label&lt;br /&gt;
    Friend WithEvents ShowInfo As System.Windows.Forms.Label&lt;br /&gt;
End Class&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	</feed>