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

	<entry>
		<id>http://www.vbex.ru/index.php?title=VB.Net/GUI/MessageBox&amp;diff=570&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/MessageBox&amp;diff=570&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/MessageBox&amp;diff=571&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/MessageBox&amp;diff=571&amp;oldid=prev"/>
				<updated>2010-05-26T12:44: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;==MessageBox: Abort, Retry and Ignore==&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.Collections&lt;br /&gt;
Imports System.ruponentModel&lt;br /&gt;
Imports System.Windows.Forms&lt;br /&gt;
Imports System.Data&lt;br /&gt;
Imports System.Configuration&lt;br /&gt;
Imports System.Resources&lt;br /&gt;
Imports System.Drawing&lt;br /&gt;
Imports System.Drawing.Drawing2D&lt;br /&gt;
Imports System.IO&lt;br /&gt;
Imports System.Drawing.Printing&lt;br /&gt;
&lt;br /&gt;
Public Class MainClass&lt;br /&gt;
    Shared Sub Main()&lt;br /&gt;
        Dim intResult As DialogResult&lt;br /&gt;
        &amp;quot;Get the results of the button clicked&lt;br /&gt;
        intResult = MessageBox.Show(&amp;quot;The A drive is not ready.&amp;quot; &amp;amp; _&lt;br /&gt;
            ControlChars.CrLf &amp;amp; ControlChars.CrLf &amp;amp; _&lt;br /&gt;
            &amp;quot;Please insert a diskette into the drive.&amp;quot;, &amp;quot;Device Not Ready&amp;quot;, _&lt;br /&gt;
            MessageBoxButtons.AbortRetryIgnore, MessageBoxIcon.Error, _&lt;br /&gt;
            MessageBoxDefaultButton.Button2)&lt;br /&gt;
        &amp;quot;Process the results of the button clicked&lt;br /&gt;
        Select Case intResult&lt;br /&gt;
            Case DialogResult.Abort&lt;br /&gt;
                &amp;quot;Do abort processing here...&lt;br /&gt;
                System.Console.WriteLine(&amp;quot;Abort Clicked&amp;quot;)&lt;br /&gt;
            Case DialogResult.Retry&lt;br /&gt;
                &amp;quot;Do retry processing here...&lt;br /&gt;
                System.Console.WriteLine(&amp;quot;Retry Clicked&amp;quot;)&lt;br /&gt;
            Case DialogResult.Ignore&lt;br /&gt;
                &amp;quot;Do ignore processing here...&lt;br /&gt;
                System.Console.WriteLine(&amp;quot;Ignore Clicked&amp;quot;)&lt;br /&gt;
        End Select&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;
==Message Box: Abort Retry Ignore==&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.Data&lt;br /&gt;
Imports System.IO&lt;br /&gt;
Imports System.Collections&lt;br /&gt;
Imports System.Windows.Forms&lt;br /&gt;
Imports System.Drawing.Printing&lt;br /&gt;
Public Class MainClass&lt;br /&gt;
    Shared Sub Main()&lt;br /&gt;
        Dim intResult As Integer&lt;br /&gt;
        intResult = MessageBox.Show(&amp;quot;The A drive is not ready.&amp;quot; &amp;amp; _&lt;br /&gt;
           vbCrLf &amp;amp; vbCrLf &amp;amp; _&lt;br /&gt;
           &amp;quot;Please insert a diskette into the drive.&amp;quot;, _&lt;br /&gt;
           &amp;quot;Device Not Ready&amp;quot;, _&lt;br /&gt;
           MessageBoxButtons.AbortRetryIgnore, _&lt;br /&gt;
           MessageBoxIcon.Error, _&lt;br /&gt;
           MessageBoxDefaultButton.Button2)&lt;br /&gt;
        If intResult = DialogResult.Abort Then&lt;br /&gt;
            &amp;quot; Do abort processing here...&lt;br /&gt;
            Console.WriteLine( &amp;quot;Abort Clicked&amp;quot;)&lt;br /&gt;
        ElseIf intResult = DialogResult.Retry Then&lt;br /&gt;
            &amp;quot; Do retry processing here...&lt;br /&gt;
            Console.WriteLine(&amp;quot;Retry Clicked&amp;quot;)&lt;br /&gt;
        Else &amp;quot;It has to be ignore&lt;br /&gt;
            &amp;quot; Do ignore processing here...&lt;br /&gt;
            Console.WriteLine(&amp;quot;Ignore Clicked&amp;quot;)&lt;br /&gt;
        End If&lt;br /&gt;
    End Sub&lt;br /&gt;
End Class&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;
==Message box Demo==&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.Windows.Forms&lt;br /&gt;
Class MyFirstForm&lt;br /&gt;
    Inherits Form&lt;br /&gt;
    Private WithEvents mybutton As Button&lt;br /&gt;
    Public Sub New()&lt;br /&gt;
        Me.Text = &amp;quot;Hello, WinForms!&amp;quot;&lt;br /&gt;
        mybutton = New Button()&lt;br /&gt;
        mybutton.Text = &amp;quot;Click Me!&amp;quot;&lt;br /&gt;
        Me.Controls.Add(mybutton)&lt;br /&gt;
    End Sub&lt;br /&gt;
    Public Sub mybutton_Click(sender As Object, e As EventArgs) Handles mybutton.Click&lt;br /&gt;
        MessageBox.Show(&amp;quot;Message&amp;quot;)&lt;br /&gt;
    End Sub&lt;br /&gt;
    Shared Sub Main()&lt;br /&gt;
        Dim myform As Form = New MyFirstForm()&lt;br /&gt;
        Application.Run(myform)&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;
==MessageBox: OK or Cancel==&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.Collections&lt;br /&gt;
Imports System.ruponentModel&lt;br /&gt;
Imports System.Windows.Forms&lt;br /&gt;
Imports System.Data&lt;br /&gt;
Imports System.Configuration&lt;br /&gt;
Imports System.Resources&lt;br /&gt;
Imports System.Drawing&lt;br /&gt;
Imports System.Drawing.Drawing2D&lt;br /&gt;
Imports System.IO&lt;br /&gt;
Imports System.Drawing.Printing&lt;br /&gt;
&lt;br /&gt;
Public Class MainClass&lt;br /&gt;
    Shared Sub Main()&lt;br /&gt;
        &lt;br /&gt;
        If MessageBox.Show(&amp;quot;Info Text.&amp;quot;,&amp;quot;Title&amp;quot;, MessageBoxButtons.OKCancel, _&lt;br /&gt;
            Nothing, MessageBoxDefaultButton.Button1) = DialogResult.OK Then&lt;br /&gt;
            System.Console.WriteLine(&amp;quot;OK Clicked&amp;quot;)&lt;br /&gt;
        Else&lt;br /&gt;
            System.Console.WriteLine(&amp;quot;Cancel Clicked&amp;quot;)&lt;br /&gt;
        End If&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>