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

	<entry>
		<id>http://www.vbex.ru/index.php?title=VB.Net_Tutorial/GUI_Applications/Application_Thread&amp;diff=3728&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_Applications/Application_Thread&amp;diff=3728&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_Applications/Application_Thread&amp;diff=3729&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_Applications/Application_Thread&amp;diff=3729&amp;oldid=prev"/>
				<updated>2010-05-26T12:56:27Z</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;==Application Thread==&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 Form1&lt;br /&gt;
    Inherits System.Windows.Forms.Form&lt;br /&gt;
    Public Sub New()&lt;br /&gt;
        MyBase.New()&lt;br /&gt;
        InitializeComponent()&lt;br /&gt;
    End Sub&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;
    Private components As System.ruponentModel.IContainer&lt;br /&gt;
    Friend WithEvents button4 As System.Windows.Forms.Button&lt;br /&gt;
    Friend WithEvents button3 As System.Windows.Forms.Button&lt;br /&gt;
    Friend WithEvents button2 As System.Windows.Forms.Button&lt;br /&gt;
    Friend WithEvents button1 As System.Windows.Forms.Button&lt;br /&gt;
    &amp;lt;System.Diagnostics.DebuggerStepThrough()&amp;gt; Private Sub InitializeComponent()&lt;br /&gt;
        Me.button4 = New System.Windows.Forms.Button()&lt;br /&gt;
        Me.button3 = New System.Windows.Forms.Button()&lt;br /&gt;
        Me.button2 = New System.Windows.Forms.Button()&lt;br /&gt;
        Me.button1 = New System.Windows.Forms.Button()&lt;br /&gt;
        Me.SuspendLayout()&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.button4.Location = New System.Drawing.Point(24, 127)&lt;br /&gt;
        Me.button4.Name = &amp;quot;button4&amp;quot;&lt;br /&gt;
        Me.button4.Size = New System.Drawing.Size(144, 23)&lt;br /&gt;
        Me.button4.TabIndex = 7&lt;br /&gt;
        Me.button4.Text = &amp;quot;Show MessageBox&amp;quot;&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.button3.Location = New System.Drawing.Point(24, 90)&lt;br /&gt;
        Me.button3.Name = &amp;quot;button3&amp;quot;&lt;br /&gt;
        Me.button3.Size = New System.Drawing.Size(144, 23)&lt;br /&gt;
        Me.button3.TabIndex = 6&lt;br /&gt;
        Me.button3.Text = &amp;quot;Throw Exception&amp;quot;&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.button2.Location = New System.Drawing.Point(24, 53)&lt;br /&gt;
        Me.button2.Name = &amp;quot;button2&amp;quot;&lt;br /&gt;
        Me.button2.Size = New System.Drawing.Size(144, 23)&lt;br /&gt;
        Me.button2.TabIndex = 5&lt;br /&gt;
        Me.button2.Text = &amp;quot;Application.ExitThread&amp;quot;&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;button1&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.button1.Location = New System.Drawing.Point(24, 16)&lt;br /&gt;
        Me.button1.Name = &amp;quot;button1&amp;quot;&lt;br /&gt;
        Me.button1.Size = New System.Drawing.Size(144, 23)&lt;br /&gt;
        Me.button1.TabIndex = 4&lt;br /&gt;
        Me.button1.Text = &amp;quot;Application.Exit&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(192, 166)&lt;br /&gt;
        Me.Controls.AddRange(New System.Windows.Forms.Control() {Me.button4, Me.button3, Me.button2, Me.button1})&lt;br /&gt;
        Me.Name = &amp;quot;Form1&amp;quot;&lt;br /&gt;
        Me.Text = &amp;quot;Applications&amp;quot;&lt;br /&gt;
        Me.ResumeLayout(False)&lt;br /&gt;
    End Sub&lt;br /&gt;
    Shared Sub App_Exit(ByVal sender As Object, ByVal e As EventArgs)&lt;br /&gt;
        System.Diagnostics.Debug.WriteLine(&amp;quot;App_Exit&amp;quot;)&lt;br /&gt;
    End Sub&lt;br /&gt;
    Shared Sub App_Idle(ByVal sender As Object, ByVal e As EventArgs)&lt;br /&gt;
        System.Diagnostics.Debug.WriteLine(&amp;quot;App_Idle&amp;quot;)&lt;br /&gt;
    End Sub&lt;br /&gt;
    Shared Sub App_ThreadingException(ByVal sender As Object, ByVal e As System.Threading.ThreadExceptionEventArgs)&lt;br /&gt;
        System.Diagnostics.Debug.WriteLine(&amp;quot;App_ThreadException&amp;quot;)&lt;br /&gt;
        Dim msg As String = &amp;quot;A problem has occurred in this application.&amp;quot; &amp;amp; vbCrLf &amp;amp; vbCrLf &amp;amp; _&lt;br /&gt;
            vbTab &amp;amp; e.Exception.Message &amp;amp; vbCrLf &amp;amp; vbCrLf &amp;amp; _&lt;br /&gt;
            &amp;quot;Would you like to continue the application so that &amp;quot; &amp;amp; vbCrLf &amp;amp; _&lt;br /&gt;
            &amp;quot;you can save your work?&amp;quot;&lt;br /&gt;
        Dim res As DialogResult = MessageBox.Show(msg, &amp;quot;Unexpected Error&amp;quot;, MessageBoxButtons.YesNo)&lt;br /&gt;
        If res = System.Windows.Forms.DialogResult.Yes Then Exit Sub&lt;br /&gt;
        Application.Exit()&lt;br /&gt;
    End Sub&lt;br /&gt;
    Shared Sub DumpThreadID(ByVal name As String)&lt;br /&gt;
        System.Diagnostics.Debug.WriteLine(name &amp;amp; &amp;quot; thread id= &amp;quot; &amp;amp; System.AppDomain.GetCurrentThreadId().ToString())&lt;br /&gt;
    End Sub&lt;br /&gt;
    Shared Sub DummyThreadStart()&lt;br /&gt;
        DumpThreadID(&amp;quot;Dummy Thread&amp;quot;)&lt;br /&gt;
        AddHandler Application.ThreadExit, New EventHandler(AddressOf App_ThreadExit)&lt;br /&gt;
    End Sub&lt;br /&gt;
    Shared Sub Main()&lt;br /&gt;
        AddHandler Application.ThreadException, New System.Threading.ThreadExceptionEventHandler(AddressOf App_ThreadingException)&lt;br /&gt;
        AddHandler Application.Idle, New EventHandler(AddressOf App_Idle)&lt;br /&gt;
        AddHandler Application.ThreadExit, New EventHandler(AddressOf App_ThreadExit)&lt;br /&gt;
        AddHandler Application.ApplicationExit, New EventHandler(AddressOf App_Exit)&lt;br /&gt;
        DumpThreadID(&amp;quot;UI Thread&amp;quot;)&lt;br /&gt;
        Dim dummythread As System.Threading.Thread = New System.Threading.Thread(New System.Threading.ThreadStart(AddressOf DummyThreadStart))&lt;br /&gt;
        dummythread.Start()&lt;br /&gt;
        Application.Run(New Form1())&lt;br /&gt;
    End Sub&lt;br /&gt;
    Shared Sub App_ThreadExit(ByVal sender As Object, ByVal e As EventArgs)&lt;br /&gt;
        System.Diagnostics.Debug.WriteLine(&amp;quot;App_ThreadExit on thread id= &amp;quot; &amp;amp; System.AppDomain.GetCurrentThreadId().ToString())&lt;br /&gt;
    End Sub&lt;br /&gt;
    Private Sub button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles button1.Click&lt;br /&gt;
        Application.Exit()&lt;br /&gt;
    End Sub&lt;br /&gt;
    Private Sub button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles button2.Click&lt;br /&gt;
        Application.ExitThread()&lt;br /&gt;
    End Sub&lt;br /&gt;
    Private Sub button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles button3.Click&lt;br /&gt;
        Throw New System.IO.FileLoadException()&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>