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

	<entry>
		<id>http://www.vbex.ru/index.php?title=VB.Net/GUI/Dialog_Your_Own&amp;diff=480&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/Dialog_Your_Own&amp;diff=480&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/Dialog_Your_Own&amp;diff=481&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/Dialog_Your_Own&amp;diff=481&amp;oldid=prev"/>
				<updated>2010-05-26T12:43: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;==Form as Dialog example==&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.Data&lt;br /&gt;
Imports System.IO&lt;br /&gt;
Imports System.Xml.Serialization&lt;br /&gt;
Imports System.Windows.Forms&lt;br /&gt;
Imports System.Drawing&lt;br /&gt;
Imports System.Drawing.Drawing2D&lt;br /&gt;
Imports System.Drawing.Text&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 myForm As New Form1()&lt;br /&gt;
        If myForm.ShowDialog() = DialogResult.Cancel Then&lt;br /&gt;
            MessageBox.Show(&amp;quot;You pressed the cancel button&amp;quot;)&lt;br /&gt;
        Else&lt;br /&gt;
            MessageBox.Show(&amp;quot;You pressed OK.&amp;quot;)&lt;br /&gt;
        End If&lt;br /&gt;
    End Sub&lt;br /&gt;
End Class&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;
    Friend WithEvents btnOK As System.Windows.Forms.Button&lt;br /&gt;
    Friend WithEvents btnCancel As System.Windows.Forms.Button&lt;br /&gt;
    Friend WithEvents PictureBox1 As System.Windows.Forms.PictureBox&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.PictureBox1 = New System.Windows.Forms.PictureBox()&lt;br /&gt;
        Me.btnCancel = New System.Windows.Forms.Button()&lt;br /&gt;
        Me.btnOK = New System.Windows.Forms.Button()&lt;br /&gt;
        Me.SuspendLayout()&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;PictureBox1&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.PictureBox1.Anchor = ((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Left) _&lt;br /&gt;
                    Or System.Windows.Forms.AnchorStyles.Right)&lt;br /&gt;
        Me.PictureBox1.Location = New System.Drawing.Point(0, 8)&lt;br /&gt;
        Me.PictureBox1.Name = &amp;quot;PictureBox1&amp;quot;&lt;br /&gt;
        Me.PictureBox1.Size = New System.Drawing.Size(288, 184)&lt;br /&gt;
        Me.PictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage&lt;br /&gt;
        Me.PictureBox1.TabIndex = 2&lt;br /&gt;
        Me.PictureBox1.TabStop = False&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;btnCancel&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.btnCancel.Anchor = System.Windows.Forms.AnchorStyles.Bottom&lt;br /&gt;
        Me.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel&lt;br /&gt;
        Me.btnCancel.Location = New System.Drawing.Point(168, 240)&lt;br /&gt;
        Me.btnCancel.Name = &amp;quot;btnCancel&amp;quot;&lt;br /&gt;
        Me.btnCancel.Size = New System.Drawing.Size(88, 32)&lt;br /&gt;
        Me.btnCancel.TabIndex = 1&lt;br /&gt;
        Me.btnCancel.Text = &amp;quot;Cancel&amp;quot;&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;btnOK&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.btnOK.Anchor = System.Windows.Forms.AnchorStyles.Bottom&lt;br /&gt;
        Me.btnOK.DialogResult = System.Windows.Forms.DialogResult.OK&lt;br /&gt;
        Me.btnOK.Location = New System.Drawing.Point(40, 240)&lt;br /&gt;
        Me.btnOK.Name = &amp;quot;btnOK&amp;quot;&lt;br /&gt;
        Me.btnOK.Size = New System.Drawing.Size(80, 32)&lt;br /&gt;
        Me.btnOK.TabIndex = 0&lt;br /&gt;
        Me.btnOK.Text = &amp;quot;OK&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(6, 15)&lt;br /&gt;
        Me.ClientSize = New System.Drawing.Size(292, 288)&lt;br /&gt;
        Me.ControlBox = False&lt;br /&gt;
        Me.Controls.AddRange(New System.Windows.Forms.Control() {Me.PictureBox1, Me.btnCancel, Me.btnOK})&lt;br /&gt;
        Me.MaximizeBox = False&lt;br /&gt;
        Me.MinimizeBox = False&lt;br /&gt;
        Me.Name = &amp;quot;Form1&amp;quot;&lt;br /&gt;
        Me.Text = &amp;quot;Sample Custom dialog box&amp;quot;&lt;br /&gt;
        Me.ResumeLayout(False)&lt;br /&gt;
    End Sub&lt;br /&gt;
#End Region&lt;br /&gt;
    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load&lt;br /&gt;
        Me.Visible = False&lt;br /&gt;
        Me.AcceptButton = btnOK&lt;br /&gt;
        Me.CancelButton = btnCancel&lt;br /&gt;
    End Sub&lt;br /&gt;
End Class&lt;br /&gt;
&lt;br /&gt;
           &lt;br /&gt;
       &amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Modeless Dialog==&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.Reflection&lt;br /&gt;
Imports System.Windows.Forms&lt;br /&gt;
Imports System.IO&lt;br /&gt;
&lt;br /&gt;
public class MainClass&lt;br /&gt;
   Shared Sub Main()&lt;br /&gt;
      Dim form1 As Form = New MainForm&lt;br /&gt;
      Application.Run(form1)&lt;br /&gt;
   End Sub&lt;br /&gt;
End Class&lt;br /&gt;
&lt;br /&gt;
Public Class AuxForm&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 Button1 As System.Windows.Forms.Button&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 Button2 As System.Windows.Forms.Button&lt;br /&gt;
    Friend WithEvents FindBox As System.Windows.Forms.TextBox&lt;br /&gt;
    Friend WithEvents ReplaceBox As System.Windows.Forms.TextBox&lt;br /&gt;
    &amp;lt;System.Diagnostics.DebuggerStepThrough()&amp;gt; Private Sub InitializeComponent()&lt;br /&gt;
        Me.FindBox = New System.Windows.Forms.TextBox()&lt;br /&gt;
        Me.Button1 = New System.Windows.Forms.Button()&lt;br /&gt;
        Me.ReplaceBox = 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.Button2 = New System.Windows.Forms.Button()&lt;br /&gt;
        Me.SuspendLayout()&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;FindBox&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.FindBox.Font = New System.Drawing.Font(&amp;quot;Verdana&amp;quot;, 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))&lt;br /&gt;
        Me.FindBox.Location = New System.Drawing.Point(4, 24)&lt;br /&gt;
        Me.FindBox.Name = &amp;quot;FindBox&amp;quot;&lt;br /&gt;
        Me.FindBox.ScrollBars = System.Windows.Forms.ScrollBars.Vertical&lt;br /&gt;
        Me.FindBox.Size = New System.Drawing.Size(256, 22)&lt;br /&gt;
        Me.FindBox.TabIndex = 0&lt;br /&gt;
        Me.FindBox.Text = &amp;quot;&amp;quot;&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;Button1&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.Button1.Font = New System.Drawing.Font(&amp;quot;Verdana&amp;quot;, 11.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))&lt;br /&gt;
        Me.Button1.Location = New System.Drawing.Point(6, 94)&lt;br /&gt;
        Me.Button1.Name = &amp;quot;Button1&amp;quot;&lt;br /&gt;
        Me.Button1.Size = New System.Drawing.Size(101, 33)&lt;br /&gt;
        Me.Button1.TabIndex = 1&lt;br /&gt;
        Me.Button1.Text = &amp;quot;Replace&amp;quot;&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;ReplaceBox&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.ReplaceBox.Font = New System.Drawing.Font(&amp;quot;Verdana&amp;quot;, 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))&lt;br /&gt;
        Me.ReplaceBox.Location = New System.Drawing.Point(4, 67)&lt;br /&gt;
        Me.ReplaceBox.Name = &amp;quot;ReplaceBox&amp;quot;&lt;br /&gt;
        Me.ReplaceBox.ScrollBars = System.Windows.Forms.ScrollBars.Vertical&lt;br /&gt;
        Me.ReplaceBox.Size = New System.Drawing.Size(256, 22)&lt;br /&gt;
        Me.ReplaceBox.TabIndex = 2&lt;br /&gt;
        Me.ReplaceBox.Text = &amp;quot;&amp;quot;&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;Label1&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.Label1.Font = New System.Drawing.Font(&amp;quot;Verdana&amp;quot;, 9.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))&lt;br /&gt;
        Me.Label1.Location = New System.Drawing.Point(6, 5)&lt;br /&gt;
        Me.Label1.Name = &amp;quot;Label1&amp;quot;&lt;br /&gt;
        Me.Label1.Size = New System.Drawing.Size(100, 15)&lt;br /&gt;
        Me.Label1.TabIndex = 3&lt;br /&gt;
        Me.Label1.Text = &amp;quot;Find Text&amp;quot;&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;Label2&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.Label2.Font = New System.Drawing.Font(&amp;quot;Verdana&amp;quot;, 9.75!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))&lt;br /&gt;
        Me.Label2.Location = New System.Drawing.Point(4, 47)&lt;br /&gt;
        Me.Label2.Name = &amp;quot;Label2&amp;quot;&lt;br /&gt;
        Me.Label2.Size = New System.Drawing.Size(100, 17)&lt;br /&gt;
        Me.Label2.TabIndex = 4&lt;br /&gt;
        Me.Label2.Text = &amp;quot;Replace with&amp;quot;&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;Button2&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.Button2.Font = New System.Drawing.Font(&amp;quot;Verdana&amp;quot;, 11.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))&lt;br /&gt;
        Me.Button2.Location = New System.Drawing.Point(155, 96)&lt;br /&gt;
        Me.Button2.Name = &amp;quot;Button2&amp;quot;&lt;br /&gt;
        Me.Button2.Size = New System.Drawing.Size(101, 33)&lt;br /&gt;
        Me.Button2.TabIndex = 5&lt;br /&gt;
        Me.Button2.Text = &amp;quot;Close&amp;quot;&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;AuxForm&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(262, 133)&lt;br /&gt;
        Me.ControlBox = False&lt;br /&gt;
        Me.Controls.AddRange(New System.Windows.Forms.Control() {Me.Button2, Me.Label2, Me.Label1, Me.ReplaceBox, Me.Button1, Me.FindBox})&lt;br /&gt;
        Me.MaximizeBox = False&lt;br /&gt;
        Me.MinimizeBox = False&lt;br /&gt;
        Me.Name = &amp;quot;AuxForm&amp;quot;&lt;br /&gt;
        Me.Text = &amp;quot;Auxiliary Form&amp;quot;&lt;br /&gt;
        Me.TopMost = True&lt;br /&gt;
        Me.ResumeLayout(False)&lt;br /&gt;
    End Sub&lt;br /&gt;
#End Region&lt;br /&gt;
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click&lt;br /&gt;
        MainForm.txt.Text = MainForm.txt.Text.Replace(FindBox.Text, ReplaceBox.Text)&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;
        Me.Close()&lt;br /&gt;
    End Sub&lt;br /&gt;
End Class&lt;br /&gt;
&lt;br /&gt;
Public Class MainForm&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 bttnFind As System.Windows.Forms.Button&lt;br /&gt;
    Friend WithEvents TextBox1 As System.Windows.Forms.TextBox&lt;br /&gt;
    &amp;lt;System.Diagnostics.DebuggerStepThrough()&amp;gt; Private Sub InitializeComponent()&lt;br /&gt;
        Me.TextBox1 = New System.Windows.Forms.TextBox()&lt;br /&gt;
        Me.bttnFind = New System.Windows.Forms.Button()&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.Font = New System.Drawing.Font(&amp;quot;Verdana&amp;quot;, 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))&lt;br /&gt;
        Me.TextBox1.Location = New System.Drawing.Point(6, 8)&lt;br /&gt;
        Me.TextBox1.Multiline = True&lt;br /&gt;
        Me.TextBox1.Name = &amp;quot;TextBox1&amp;quot;&lt;br /&gt;
        Me.TextBox1.ScrollBars = System.Windows.Forms.ScrollBars.Vertical&lt;br /&gt;
        Me.TextBox1.Size = New System.Drawing.Size(576, 278)&lt;br /&gt;
        Me.TextBox1.TabIndex = 0&lt;br /&gt;
        Me.TextBox1.Text = &amp;quot;&amp;quot;&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;bttnFind&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.bttnFind.Font = New System.Drawing.Font(&amp;quot;Verdana&amp;quot;, 11.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))&lt;br /&gt;
        Me.bttnFind.Location = New System.Drawing.Point(398, 294)&lt;br /&gt;
        Me.bttnFind.Name = &amp;quot;bttnFind&amp;quot;&lt;br /&gt;
        Me.bttnFind.Size = New System.Drawing.Size(185, 33)&lt;br /&gt;
        Me.bttnFind.TabIndex = 1&lt;br /&gt;
        Me.bttnFind.Text = &amp;quot;Find &amp;amp;&amp;amp; Replace&amp;quot;&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;MainForm&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(588, 333)&lt;br /&gt;
        Me.Controls.AddRange(New System.Windows.Forms.Control() {Me.bttnFind, Me.TextBox1})&lt;br /&gt;
        Me.Name = &amp;quot;MainForm&amp;quot;&lt;br /&gt;
        Me.Text = &amp;quot;Main Form&amp;quot;&lt;br /&gt;
        Me.ResumeLayout(False)&lt;br /&gt;
    End Sub&lt;br /&gt;
#End Region&lt;br /&gt;
    Public Shared txt As TextBox&lt;br /&gt;
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles bttnFind.Click&lt;br /&gt;
        Dim aForm As New AuxForm()&lt;br /&gt;
        aForm.FindBox.Text = TextBox1.SelectedText&lt;br /&gt;
        aForm.Show()&lt;br /&gt;
    End Sub&lt;br /&gt;
    Private Sub MainForm_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load&lt;br /&gt;
        txt = TextBox1&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;
==Your Log in Dialog==&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.ruponentModel&lt;br /&gt;
Imports System.Windows.Forms&lt;br /&gt;
&lt;br /&gt;
Public Class MainClass&lt;br /&gt;
    &lt;br /&gt;
    Shared Sub Main(ByVal args As String())&lt;br /&gt;
        Dim dlg As New dlgEmployee&lt;br /&gt;
        If dlg.ShowDialog() = Windows.Forms.DialogResult.OK Then&lt;br /&gt;
            MessageBox.Show( _&lt;br /&gt;
                dlg.txtFirstName.Text &amp;amp; &amp;quot; &amp;quot; &amp;amp; _&lt;br /&gt;
                dlg.txtLastName.Text)&lt;br /&gt;
        Else&lt;br /&gt;
            MessageBox.Show(&amp;quot;Canceled&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;Global.Microsoft.VisualBasic.rupilerServices.DesignerGenerated()&amp;gt; _&lt;br /&gt;
Partial Public Class dlgEmployee&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.txtLastName = New System.Windows.Forms.TextBox&lt;br /&gt;
        Me.Label2 = New System.Windows.Forms.Label&lt;br /&gt;
        Me.btnCancel = New System.Windows.Forms.Button&lt;br /&gt;
        Me.btnOk = New System.Windows.Forms.Button&lt;br /&gt;
        Me.txtFirstName = New System.Windows.Forms.TextBox&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;txtLastName&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.txtLastName.Location = New System.Drawing.Point(72, 33)&lt;br /&gt;
        Me.txtLastName.Name = &amp;quot;txtLastName&amp;quot;&lt;br /&gt;
        Me.txtLastName.Size = New System.Drawing.Size(168, 20)&lt;br /&gt;
        Me.txtLastName.TabIndex = 7&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, 33)&lt;br /&gt;
        Me.Label2.Name = &amp;quot;Label2&amp;quot;&lt;br /&gt;
        Me.Label2.Size = New System.Drawing.Size(58, 13)&lt;br /&gt;
        Me.Label2.TabIndex = 10&lt;br /&gt;
        Me.Label2.Text = &amp;quot;Last Name&amp;quot;&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;btnCancel&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel&lt;br /&gt;
        Me.btnCancel.Location = New System.Drawing.Point(256, 49)&lt;br /&gt;
        Me.btnCancel.Name = &amp;quot;btnCancel&amp;quot;&lt;br /&gt;
        Me.btnCancel.Size = New System.Drawing.Size(56, 24)&lt;br /&gt;
        Me.btnCancel.TabIndex = 9&lt;br /&gt;
        Me.btnCancel.Text = &amp;quot;Cancel&amp;quot;&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;btnOk&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.btnOk.Location = New System.Drawing.Point(256, 9)&lt;br /&gt;
        Me.btnOk.Name = &amp;quot;btnOk&amp;quot;&lt;br /&gt;
        Me.btnOk.Size = New System.Drawing.Size(56, 24)&lt;br /&gt;
        Me.btnOk.TabIndex = 8&lt;br /&gt;
        Me.btnOk.Text = &amp;quot;OK&amp;quot;&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;txtFirstName&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.txtFirstName.Location = New System.Drawing.Point(72, 9)&lt;br /&gt;
        Me.txtFirstName.Name = &amp;quot;txtFirstName&amp;quot;&lt;br /&gt;
        Me.txtFirstName.Size = New System.Drawing.Size(168, 20)&lt;br /&gt;
        Me.txtFirstName.TabIndex = 5&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, 9)&lt;br /&gt;
        Me.Label1.Name = &amp;quot;Label1&amp;quot;&lt;br /&gt;
        Me.Label1.Size = New System.Drawing.Size(57, 13)&lt;br /&gt;
        Me.Label1.TabIndex = 6&lt;br /&gt;
        Me.Label1.Text = &amp;quot;First Name&amp;quot;&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;dlgEmployee&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.AcceptButton = Me.btnOk&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.CancelButton = Me.btnOk&lt;br /&gt;
        Me.ClientSize = New System.Drawing.Size(320, 82)&lt;br /&gt;
        Me.Controls.Add(Me.txtLastName)&lt;br /&gt;
        Me.Controls.Add(Me.Label2)&lt;br /&gt;
        Me.Controls.Add(Me.btnCancel)&lt;br /&gt;
        Me.Controls.Add(Me.btnOk)&lt;br /&gt;
        Me.Controls.Add(Me.txtFirstName)&lt;br /&gt;
        Me.Controls.Add(Me.Label1)&lt;br /&gt;
        Me.Name = &amp;quot;dlgEmployee&amp;quot;&lt;br /&gt;
        Me.Text = &amp;quot;Enter Value&amp;quot;&lt;br /&gt;
        Me.ResumeLayout(False)&lt;br /&gt;
        Me.PerformLayout()&lt;br /&gt;
    End Sub&lt;br /&gt;
    Friend WithEvents txtLastName As System.Windows.Forms.TextBox&lt;br /&gt;
    Friend WithEvents Label2 As System.Windows.Forms.Label&lt;br /&gt;
    Friend WithEvents btnCancel As System.Windows.Forms.Button&lt;br /&gt;
    Friend WithEvents btnOk As System.Windows.Forms.Button&lt;br /&gt;
    Friend WithEvents txtFirstName As System.Windows.Forms.TextBox&lt;br /&gt;
    Friend WithEvents Label1 As System.Windows.Forms.Label&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;
==Your own dialog with a button==&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;
Public Class PropertiesDialog&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 Shadows WithEvents acceptButton As System.Windows.Forms.Button&lt;br /&gt;
    &amp;lt;System.Diagnostics.DebuggerStepThrough()&amp;gt; Private Sub InitializeComponent()&lt;br /&gt;
        Me.acceptButton = New System.Windows.Forms.Button()&lt;br /&gt;
        Me.SuspendLayout()&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;acceptButton&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.acceptButton.Location = New System.Drawing.Point(128, 136)&lt;br /&gt;
        Me.acceptButton.Name = &amp;quot;acceptButton&amp;quot;&lt;br /&gt;
        Me.acceptButton.TabIndex = 0&lt;br /&gt;
        Me.acceptButton.Text = &amp;quot;Button1&amp;quot;&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;PropertiesDialog&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, 266)&lt;br /&gt;
        Me.Controls.AddRange(New System.Windows.Forms.Control() {Me.acceptButton})&lt;br /&gt;
        Me.Name = &amp;quot;PropertiesDialog&amp;quot;&lt;br /&gt;
        Me.Text = &amp;quot;PropertiesDialog&amp;quot;&lt;br /&gt;
        Me.ResumeLayout(False)&lt;br /&gt;
    End Sub&lt;br /&gt;
#End Region&lt;br /&gt;
    &amp;quot;Event to fire when Accept is pressed&lt;br /&gt;
    Public Event Accept As EventHandler&lt;br /&gt;
    Private Sub acceptButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles acceptButton.Click&lt;br /&gt;
       Me.Close()&lt;br /&gt;
    End Sub&lt;br /&gt;
End Class&lt;br /&gt;
Public Class MainClass&lt;br /&gt;
    Shared Sub Main()&lt;br /&gt;
        Dim myform As Form = New PropertiesDialog()&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;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	</feed>