<?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%2FApplication%2FText_Editor</id>
		<title>VB.Net/Application/Text Editor - История изменений</title>
		<link rel="self" type="application/atom+xml" href="http://www.vbex.ru/index.php?action=history&amp;feed=atom&amp;title=VB.Net%2FApplication%2FText_Editor"/>
		<link rel="alternate" type="text/html" href="http://www.vbex.ru/index.php?title=VB.Net/Application/Text_Editor&amp;action=history"/>
		<updated>2026-04-06T01:21:22Z</updated>
		<subtitle>История изменений этой страницы в вики</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://www.vbex.ru/index.php?title=VB.Net/Application/Text_Editor&amp;diff=2&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/Application/Text_Editor&amp;diff=2&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/Application/Text_Editor&amp;diff=3&amp;oldid=prev</id>
		<title>Admin: 1 версия</title>
		<link rel="alternate" type="text/html" href="http://www.vbex.ru/index.php?title=VB.Net/Application/Text_Editor&amp;diff=3&amp;oldid=prev"/>
				<updated>2010-05-26T12:41:30Z</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;==Simple Text Editor==&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;
&lt;br /&gt;
Public Class MainClass&lt;br /&gt;
    Shared Sub Main()&lt;br /&gt;
        Dim myform As Form = New TextEditor()&lt;br /&gt;
        Application.Run(myform)&lt;br /&gt;
    End Sub&lt;br /&gt;
End Class&lt;br /&gt;
Public Class TextEditor&lt;br /&gt;
    Public Property StatusText() As String&lt;br /&gt;
        Get&lt;br /&gt;
            Return sspStatus.Text&lt;br /&gt;
        End Get&lt;br /&gt;
        Set(ByVal value As String)&lt;br /&gt;
            sspStatus.Text = value&lt;br /&gt;
        End Set&lt;br /&gt;
    End Property&lt;br /&gt;
    Public Property EditText() As String&lt;br /&gt;
        Get&lt;br /&gt;
            Return txtEdit.Text&lt;br /&gt;
        End Get&lt;br /&gt;
        Set(ByVal value As String)&lt;br /&gt;
            txtEdit.Text = value&lt;br /&gt;
        End Set&lt;br /&gt;
    End Property&lt;br /&gt;
    Public Sub ClearEditBox()&lt;br /&gt;
        EditText = String.Empty&lt;br /&gt;
        txtEdit.ForeColor = Color.Black&lt;br /&gt;
        StatusText = &amp;quot;Text box cleared&amp;quot;&lt;br /&gt;
    End Sub&lt;br /&gt;
    Private Sub txtEdit_TextChanged(ByVal sender As Object, _&lt;br /&gt;
        ByVal e As System.EventArgs) Handles txtEdit.TextChanged&lt;br /&gt;
        &amp;quot;Reset the status bar text&lt;br /&gt;
        StatusText = &amp;quot;Ready&amp;quot;&lt;br /&gt;
    End Sub&lt;br /&gt;
    Private Sub tbrClear_Click(ByVal sender As Object, _&lt;br /&gt;
        ByVal e As System.EventArgs) Handles tbrClear.Click&lt;br /&gt;
        ClearEditBox()&lt;br /&gt;
    End Sub&lt;br /&gt;
    Public Sub RedText()&lt;br /&gt;
        txtEdit.ForeColor = Color.Red&lt;br /&gt;
        StatusText = &amp;quot;The text is red&amp;quot;&lt;br /&gt;
    End Sub&lt;br /&gt;
    Private Sub tbrRed_Click(ByVal sender As Object, _&lt;br /&gt;
        ByVal e As System.EventArgs) Handles tbrRed.Click&lt;br /&gt;
        RedText()&lt;br /&gt;
    End Sub&lt;br /&gt;
    Public Sub BlueText()&lt;br /&gt;
        txtEdit.ForeColor = Color.Blue&lt;br /&gt;
        StatusText = &amp;quot;The text is blue&amp;quot;&lt;br /&gt;
    End Sub&lt;br /&gt;
    Private Sub tbrBlue_Click(ByVal sender As Object, _&lt;br /&gt;
        ByVal e As System.EventArgs) Handles tbrBlue.Click&lt;br /&gt;
        BlueText()&lt;br /&gt;
    End Sub&lt;br /&gt;
    Public Sub UppercaseText()&lt;br /&gt;
        EditText = EditText.ToUpper&lt;br /&gt;
        StatusText = &amp;quot;The text is all uppercase&amp;quot;&lt;br /&gt;
    End Sub&lt;br /&gt;
    Private Sub tbrUpperCase_Click(ByVal sender As Object, _&lt;br /&gt;
        ByVal e As System.EventArgs) Handles tbrUpperCase.Click&lt;br /&gt;
        UppercaseText()&lt;br /&gt;
    End Sub&lt;br /&gt;
    Public Sub LowercaseText()&lt;br /&gt;
        EditText = EditText.ToLower&lt;br /&gt;
        StatusText = &amp;quot;The text is all lowercase&amp;quot;&lt;br /&gt;
    End Sub&lt;br /&gt;
    Private Sub tbrLowerCase_Click(ByVal sender As Object, _&lt;br /&gt;
        ByVal e As System.EventArgs) Handles tbrLowerCase.Click&lt;br /&gt;
        LowercaseText()&lt;br /&gt;
    End Sub&lt;br /&gt;
    Public Sub ShowAboutBox()&lt;br /&gt;
    End Sub&lt;br /&gt;
    Private Sub tbrHelpAbout_Click(ByVal sender As Object, _&lt;br /&gt;
        ByVal e As System.EventArgs) Handles tbrHelpAbout.Click&lt;br /&gt;
        ShowAboutBox()&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 TextEditor&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 Overloads 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;
&amp;quot;        Dim resources As System.ruponentModel.ruponentResourceManager = New System.ruponentModel.ruponentResourceManager(GetType(TextEditor))&lt;br /&gt;
        Me.ToolStrip1 = New System.Windows.Forms.ToolStrip&lt;br /&gt;
        Me.tbrClear = New System.Windows.Forms.ToolStripButton&lt;br /&gt;
        Me.ToolStripSeparator1 = New System.Windows.Forms.ToolStripSeparator&lt;br /&gt;
        Me.tbrRed = New System.Windows.Forms.ToolStripButton&lt;br /&gt;
        Me.tbrBlue = New System.Windows.Forms.ToolStripButton&lt;br /&gt;
        Me.ToolStripSeparator2 = New System.Windows.Forms.ToolStripSeparator&lt;br /&gt;
        Me.tbrUpperCase = New System.Windows.Forms.ToolStripButton&lt;br /&gt;
        Me.tbrLowerCase = New System.Windows.Forms.ToolStripButton&lt;br /&gt;
        Me.ToolStripSeparator3 = New System.Windows.Forms.ToolStripSeparator&lt;br /&gt;
        Me.tbrHelpAbout = New System.Windows.Forms.ToolStripButton&lt;br /&gt;
        Me.StatusStrip1 = New System.Windows.Forms.StatusStrip&lt;br /&gt;
        Me.sspStatus = New System.Windows.Forms.ToolStripStatusLabel&lt;br /&gt;
        Me.txtEdit = New System.Windows.Forms.TextBox&lt;br /&gt;
        Me.ToolStrip1.SuspendLayout()&lt;br /&gt;
        Me.StatusStrip1.SuspendLayout()&lt;br /&gt;
        Me.SuspendLayout()&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;ToolStrip1&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.ToolStrip1.Items.AddRange(New System.Windows.Forms.ToolStripItem() {Me.tbrClear, Me.ToolStripSeparator1, Me.tbrRed, Me.tbrBlue, Me.ToolStripSeparator2, Me.tbrUpperCase, Me.tbrLowerCase, Me.ToolStripSeparator3, Me.tbrHelpAbout})&lt;br /&gt;
        Me.ToolStrip1.Location = New System.Drawing.Point(0, 0)&lt;br /&gt;
        Me.ToolStrip1.Name = &amp;quot;ToolStrip1&amp;quot;&lt;br /&gt;
        Me.ToolStrip1.Size = New System.Drawing.Size(592, 25)&lt;br /&gt;
        Me.ToolStrip1.Stretch = True&lt;br /&gt;
        Me.ToolStrip1.TabIndex = 0&lt;br /&gt;
        Me.ToolStrip1.Text = &amp;quot;ToolStrip1&amp;quot;&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;tbrClear&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.tbrClear.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image&lt;br /&gt;
        &amp;quot;Me.tbrClear.Image = CType(resources.GetObject(&amp;quot;tbrClear.Image&amp;quot;), System.Drawing.Image)&lt;br /&gt;
        Me.tbrClear.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None&lt;br /&gt;
        Me.tbrClear.ImageTransparentColor = System.Drawing.Color.Magenta&lt;br /&gt;
        Me.tbrClear.Name = &amp;quot;tbrClear&amp;quot;&lt;br /&gt;
        Me.tbrClear.Text = &amp;quot;New&amp;quot;&lt;br /&gt;
        Me.tbrClear.ToolTipText = &amp;quot;New&amp;quot;&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;ToolStripSeparator1&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.ToolStripSeparator1.Name = &amp;quot;ToolStripSeparator1&amp;quot;&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;tbrRed&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.tbrRed.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image&lt;br /&gt;
        &amp;quot;Me.tbrRed.Image = CType(resources.GetObject(&amp;quot;tbrRed.Image&amp;quot;), System.Drawing.Image)&lt;br /&gt;
        Me.tbrRed.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None&lt;br /&gt;
        Me.tbrRed.ImageTransparentColor = System.Drawing.Color.Magenta&lt;br /&gt;
        Me.tbrRed.Name = &amp;quot;tbrRed&amp;quot;&lt;br /&gt;
        Me.tbrRed.Text = &amp;quot;Red&amp;quot;&lt;br /&gt;
        Me.tbrRed.ToolTipText = &amp;quot;Red&amp;quot;&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;tbrBlue&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.tbrBlue.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image&lt;br /&gt;
        &amp;quot;Me.tbrBlue.Image = CType(resources.GetObject(&amp;quot;tbrBlue.Image&amp;quot;), System.Drawing.Image)&lt;br /&gt;
        Me.tbrBlue.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None&lt;br /&gt;
        Me.tbrBlue.ImageTransparentColor = System.Drawing.Color.Magenta&lt;br /&gt;
        Me.tbrBlue.Name = &amp;quot;tbrBlue&amp;quot;&lt;br /&gt;
        Me.tbrBlue.Text = &amp;quot;Blue&amp;quot;&lt;br /&gt;
        Me.tbrBlue.ToolTipText = &amp;quot;Blue&amp;quot;&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;ToolStripSeparator2&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.ToolStripSeparator2.Name = &amp;quot;ToolStripSeparator2&amp;quot;&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;tbrUpperCase&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.tbrUpperCase.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image&lt;br /&gt;
        &amp;quot;Me.tbrUpperCase.Image = CType(resources.GetObject(&amp;quot;tbrUpperCase.Image&amp;quot;), System.Drawing.Image)&lt;br /&gt;
        Me.tbrUpperCase.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None&lt;br /&gt;
        Me.tbrUpperCase.ImageTransparentColor = System.Drawing.Color.Magenta&lt;br /&gt;
        Me.tbrUpperCase.Name = &amp;quot;tbrUpperCase&amp;quot;&lt;br /&gt;
        Me.tbrUpperCase.Text = &amp;quot;Upper Case&amp;quot;&lt;br /&gt;
        Me.tbrUpperCase.ToolTipText = &amp;quot;Upper Case&amp;quot;&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;tbrLowerCase&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.tbrLowerCase.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image&lt;br /&gt;
        &amp;quot;Me.tbrLowerCase.Image = CType(resources.GetObject(&amp;quot;tbrLowerCase.Image&amp;quot;), System.Drawing.Image)&lt;br /&gt;
        Me.tbrLowerCase.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None&lt;br /&gt;
        Me.tbrLowerCase.ImageTransparentColor = System.Drawing.Color.Magenta&lt;br /&gt;
        Me.tbrLowerCase.Name = &amp;quot;tbrLowerCase&amp;quot;&lt;br /&gt;
        Me.tbrLowerCase.Text = &amp;quot;Lower Case&amp;quot;&lt;br /&gt;
        Me.tbrLowerCase.ToolTipText = &amp;quot;Lower Case&amp;quot;&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;ToolStripSeparator3&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.ToolStripSeparator3.Name = &amp;quot;ToolStripSeparator3&amp;quot;&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;tbrHelpAbout&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.tbrHelpAbout.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image&lt;br /&gt;
        &amp;quot;Me.tbrHelpAbout.Image = CType(resources.GetObject(&amp;quot;tbrHelpAbout.Image&amp;quot;), System.Drawing.Image)&lt;br /&gt;
        Me.tbrHelpAbout.ImageTransparentColor = System.Drawing.Color.Magenta&lt;br /&gt;
        Me.tbrHelpAbout.Name = &amp;quot;tbrHelpAbout&amp;quot;&lt;br /&gt;
        Me.tbrHelpAbout.Text = &amp;quot;About&amp;quot;&lt;br /&gt;
        Me.tbrHelpAbout.ToolTipText = &amp;quot;About&amp;quot;&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;StatusStrip1&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.StatusStrip1.Items.AddRange(New System.Windows.Forms.ToolStripItem() {Me.sspStatus})&lt;br /&gt;
        Me.StatusStrip1.LayoutStyle = System.Windows.Forms.ToolStripLayoutStyle.Table&lt;br /&gt;
        Me.StatusStrip1.Location = New System.Drawing.Point(0, 411)&lt;br /&gt;
        Me.StatusStrip1.Name = &amp;quot;StatusStrip1&amp;quot;&lt;br /&gt;
        Me.StatusStrip1.Size = New System.Drawing.Size(592, 22)&lt;br /&gt;
        Me.StatusStrip1.TabIndex = 1&lt;br /&gt;
        Me.StatusStrip1.Text = &amp;quot;StatusStrip1&amp;quot;&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;sspStatus&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.sspStatus.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text&lt;br /&gt;
        Me.sspStatus.Name = &amp;quot;sspStatus&amp;quot;&lt;br /&gt;
        Me.sspStatus.Text = &amp;quot;Ready&amp;quot;&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;txtEdit&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.txtEdit.Dock = System.Windows.Forms.DockStyle.Fill&lt;br /&gt;
        Me.txtEdit.Location = New System.Drawing.Point(0, 25)&lt;br /&gt;
        Me.txtEdit.Multiline = True&lt;br /&gt;
        Me.txtEdit.Name = &amp;quot;txtEdit&amp;quot;&lt;br /&gt;
        Me.txtEdit.ScrollBars = System.Windows.Forms.ScrollBars.Vertical&lt;br /&gt;
        Me.txtEdit.Size = New System.Drawing.Size(592, 386)&lt;br /&gt;
        Me.txtEdit.TabIndex = 2&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;TextEditor&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(592, 433)&lt;br /&gt;
        Me.Controls.Add(Me.txtEdit)&lt;br /&gt;
        Me.Controls.Add(Me.ToolStrip1)&lt;br /&gt;
        Me.Controls.Add(Me.StatusStrip1)&lt;br /&gt;
        Me.Name = &amp;quot;TextEditor&amp;quot;&lt;br /&gt;
        Me.Text = &amp;quot;Text Editor&amp;quot;&lt;br /&gt;
        Me.ToolStrip1.ResumeLayout(False)&lt;br /&gt;
        Me.StatusStrip1.ResumeLayout(False)&lt;br /&gt;
        Me.ResumeLayout(False)&lt;br /&gt;
        Me.PerformLayout()&lt;br /&gt;
    End Sub&lt;br /&gt;
    Friend WithEvents ToolStrip1 As System.Windows.Forms.ToolStrip&lt;br /&gt;
    Friend WithEvents tbrClear As System.Windows.Forms.ToolStripButton&lt;br /&gt;
    Friend WithEvents ToolStripSeparator1 As System.Windows.Forms.ToolStripSeparator&lt;br /&gt;
    Friend WithEvents tbrRed As System.Windows.Forms.ToolStripButton&lt;br /&gt;
    Friend WithEvents tbrBlue As System.Windows.Forms.ToolStripButton&lt;br /&gt;
    Friend WithEvents ToolStripSeparator2 As System.Windows.Forms.ToolStripSeparator&lt;br /&gt;
    Friend WithEvents tbrUpperCase As System.Windows.Forms.ToolStripButton&lt;br /&gt;
    Friend WithEvents tbrLowerCase As System.Windows.Forms.ToolStripButton&lt;br /&gt;
    Friend WithEvents ToolStripSeparator3 As System.Windows.Forms.ToolStripSeparator&lt;br /&gt;
    Friend WithEvents tbrHelpAbout As System.Windows.Forms.ToolStripButton&lt;br /&gt;
    Friend WithEvents StatusStrip1 As System.Windows.Forms.StatusStrip&lt;br /&gt;
    Friend WithEvents sspStatus As System.Windows.Forms.ToolStripStatusLabel&lt;br /&gt;
    Friend WithEvents txtEdit As System.Windows.Forms.TextBox&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;
==TextBox based Editor==&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.Data&lt;br /&gt;
Imports System.Collections&lt;br /&gt;
Imports System.Windows.Forms&lt;br /&gt;
Public Class MainClass&lt;br /&gt;
    Shared Sub Main()&lt;br /&gt;
        Dim form1 As Form = New TextEditor()&lt;br /&gt;
        Application.Run(form1)&lt;br /&gt;
    End Sub&lt;br /&gt;
End Class&lt;br /&gt;
Public Class TextEditor&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 statusBar As System.Windows.Forms.StatusBar&lt;br /&gt;
    Friend WithEvents toolbar As System.Windows.Forms.ToolBar&lt;br /&gt;
    Friend WithEvents toolbarClear As System.Windows.Forms.ToolBarButton&lt;br /&gt;
    Friend WithEvents toolbarRed As System.Windows.Forms.ToolBarButton&lt;br /&gt;
    Friend WithEvents toolbarBlue As System.Windows.Forms.ToolBarButton&lt;br /&gt;
    Friend WithEvents toolbarUppercase As System.Windows.Forms.ToolBarButton&lt;br /&gt;
    Friend WithEvents toolbarLowercase As System.Windows.Forms.ToolBarButton&lt;br /&gt;
    Friend WithEvents toolbarHelpAbout As System.Windows.Forms.ToolBarButton&lt;br /&gt;
    Friend WithEvents imglstToolbar As System.Windows.Forms.ImageList&lt;br /&gt;
    Friend WithEvents txtEdit As System.Windows.Forms.TextBox&lt;br /&gt;
    &amp;lt;System.Diagnostics.DebuggerStepThrough()&amp;gt; Private Sub InitializeComponent()&lt;br /&gt;
        Me.ruponents = New System.ruponentModel.Container()&lt;br /&gt;
       &amp;quot; Dim resources As System.Resources.ResourceManager = New System.Resources.ResourceManager(GetType(TextEditor))&lt;br /&gt;
        Me.statusBar = New System.Windows.Forms.StatusBar()&lt;br /&gt;
        Me.toolbar = New System.Windows.Forms.ToolBar()&lt;br /&gt;
        Me.toolbarClear = New System.Windows.Forms.ToolBarButton()&lt;br /&gt;
        Me.toolbarRed = New System.Windows.Forms.ToolBarButton()&lt;br /&gt;
        Me.toolbarBlue = New System.Windows.Forms.ToolBarButton()&lt;br /&gt;
        Me.toolbarUppercase = New System.Windows.Forms.ToolBarButton()&lt;br /&gt;
        Me.toolbarLowercase = New System.Windows.Forms.ToolBarButton()&lt;br /&gt;
        Me.toolbarHelpAbout = New System.Windows.Forms.ToolBarButton()&lt;br /&gt;
        Me.imglstToolbar = New System.Windows.Forms.ImageList(Me.ruponents)&lt;br /&gt;
        Me.txtEdit = New System.Windows.Forms.TextBox()&lt;br /&gt;
        Me.SuspendLayout()&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;statusBar&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.statusBar.Location = New System.Drawing.Point(0, 397)&lt;br /&gt;
        Me.statusBar.Name = &amp;quot;statusBar&amp;quot;&lt;br /&gt;
        Me.statusBar.Size = New System.Drawing.Size(584, 16)&lt;br /&gt;
        Me.statusBar.TabIndex = 2&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;toolbar&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.toolbar.Buttons.AddRange(New System.Windows.Forms.ToolBarButton() {Me.toolbarClear, Me.toolbarRed, Me.toolbarBlue, Me.toolbarUppercase, Me.toolbarLowercase, Me.toolbarHelpAbout})&lt;br /&gt;
        Me.toolbar.DropDownArrows = True&lt;br /&gt;
        Me.toolbar.ImageList = Me.imglstToolbar&lt;br /&gt;
        Me.toolbar.Name = &amp;quot;toolbar&amp;quot;&lt;br /&gt;
        Me.toolbar.ShowToolTips = True&lt;br /&gt;
        Me.toolbar.Size = New System.Drawing.Size(584, 39)&lt;br /&gt;
        Me.toolbar.TabIndex = 1&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;toolbarClear&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.toolbarClear.ImageIndex = 4&lt;br /&gt;
        Me.toolbarClear.Text = &amp;quot;Clear&amp;quot;&lt;br /&gt;
        Me.toolbarClear.ToolTipText = &amp;quot;Clear the text box&amp;quot;&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;toolbarRed&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.toolbarRed.ImageIndex = 2&lt;br /&gt;
        Me.toolbarRed.Text = &amp;quot;Red&amp;quot;&lt;br /&gt;
        Me.toolbarRed.ToolTipText = &amp;quot;Make the text red&amp;quot;&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;toolbarBlue&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.toolbarBlue.ImageIndex = 3&lt;br /&gt;
        Me.toolbarBlue.Text = &amp;quot;Blue&amp;quot;&lt;br /&gt;
        Me.toolbarBlue.ToolTipText = &amp;quot;Make the text blue&amp;quot;&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;toolbarUppercase&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.toolbarUppercase.ImageIndex = 0&lt;br /&gt;
        Me.toolbarUppercase.Text = &amp;quot;Uppercase&amp;quot;&lt;br /&gt;
        Me.toolbarUppercase.ToolTipText = &amp;quot;Make the text uppercase&amp;quot;&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;toolbarLowercase&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.toolbarLowercase.ImageIndex = 1&lt;br /&gt;
        Me.toolbarLowercase.Text = &amp;quot;Lowercase&amp;quot;&lt;br /&gt;
        Me.toolbarLowercase.ToolTipText = &amp;quot;Make the toolbar lowercase&amp;quot;&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;toolbarHelpAbout&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.toolbarHelpAbout.ImageIndex = 5&lt;br /&gt;
        Me.toolbarHelpAbout.Text = &amp;quot;About&amp;quot;&lt;br /&gt;
        Me.toolbarHelpAbout.ToolTipText = &amp;quot;Display the About box&amp;quot;&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;imglstToolbar&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.imglstToolbar.ColorDepth = System.Windows.Forms.ColorDepth.Depth8Bit&lt;br /&gt;
        Me.imglstToolbar.ImageSize = New System.Drawing.Size(16, 16)&lt;br /&gt;
&amp;quot;        Me.imglstToolbar.ImageStream = CType(resources.GetObject(&amp;quot;imglstToolbar.ImageStream&amp;quot;), System.Windows.Forms.ImageListStreamer)&lt;br /&gt;
        Me.imglstToolbar.TransparentColor = System.Drawing.Color.Transparent&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;txtEdit&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.txtEdit.Anchor = (((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _&lt;br /&gt;
                    Or System.Windows.Forms.AnchorStyles.Left) _&lt;br /&gt;
                    Or System.Windows.Forms.AnchorStyles.Right)&lt;br /&gt;
        Me.txtEdit.Location = New System.Drawing.Point(8, 48)&lt;br /&gt;
        Me.txtEdit.Multiline = True&lt;br /&gt;
        Me.txtEdit.Name = &amp;quot;txtEdit&amp;quot;&lt;br /&gt;
        Me.txtEdit.ScrollBars = System.Windows.Forms.ScrollBars.Vertical&lt;br /&gt;
        Me.txtEdit.Size = New System.Drawing.Size(568, 340)&lt;br /&gt;
        Me.txtEdit.TabIndex = 1&lt;br /&gt;
        Me.txtEdit.Text = &amp;quot;&amp;quot;&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;TextEditor&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(584, 413)&lt;br /&gt;
        Me.Controls.AddRange(New System.Windows.Forms.Control() {Me.txtEdit, Me.toolbar, Me.statusBar})&lt;br /&gt;
        Me.Name = &amp;quot;TextEditor&amp;quot;&lt;br /&gt;
        Me.Text = &amp;quot;Form1&amp;quot;&lt;br /&gt;
        Me.ResumeLayout(False)&lt;br /&gt;
    End Sub&lt;br /&gt;
#End Region&lt;br /&gt;
    &amp;quot; StatusText - set the text on the status bar...&lt;br /&gt;
    Public Property StatusText() As String&lt;br /&gt;
        Get&lt;br /&gt;
            Return statusBar.Text&lt;br /&gt;
        End Get&lt;br /&gt;
        Set(ByVal Value As String)&lt;br /&gt;
            statusBar.Text = Value&lt;br /&gt;
        End Set&lt;br /&gt;
    End Property&lt;br /&gt;
&lt;br /&gt;
    &amp;quot; EditText - gets or sets the text that we&amp;quot;re editing...&lt;br /&gt;
    Public Property EditText() As String&lt;br /&gt;
        Get&lt;br /&gt;
            Return txtEdit.Text&lt;br /&gt;
        End Get&lt;br /&gt;
        Set(ByVal Value As String)&lt;br /&gt;
            txtEdit.Text = Value&lt;br /&gt;
            &amp;quot; clear the selection...&lt;br /&gt;
            &amp;quot;txtEdit.Select(0, 0)&lt;br /&gt;
        End Set&lt;br /&gt;
    End Property&lt;br /&gt;
&lt;br /&gt;
    &amp;quot; ClearEditBox ?empties txtEdit...&lt;br /&gt;
    Public Sub ClearEditBox()&lt;br /&gt;
        &amp;quot; reset the EditText property...&lt;br /&gt;
        EditText = &amp;quot;&amp;quot;&lt;br /&gt;
        &amp;quot; reset the font color&lt;br /&gt;
        txtEdit.ForeColor = System.Drawing.Color.Black&lt;br /&gt;
        &amp;quot; reset the status bar...&lt;br /&gt;
        StatusText = &amp;quot;Text box cleared&amp;quot;&lt;br /&gt;
    End Sub&lt;br /&gt;
&lt;br /&gt;
    Private Sub txtEdit_TextChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles txtEdit.TextChanged&lt;br /&gt;
        &amp;quot; reset the status bar...&lt;br /&gt;
        StatusText = &amp;quot;Ready&amp;quot;&lt;br /&gt;
    End Sub&lt;br /&gt;
&lt;br /&gt;
    Private Sub toolbar_ButtonClick(ByVal sender As Object, ByVal e As System.Windows.Forms.ToolBarButtonClickEventArgs) Handles toolbar.ButtonClick&lt;br /&gt;
        If e.Button Is toolbarClear Then&lt;br /&gt;
            ClearEditBox()&lt;br /&gt;
        End If&lt;br /&gt;
        If e.Button Is toolbarRed Then&lt;br /&gt;
            RedText()&lt;br /&gt;
        End If&lt;br /&gt;
        If e.Button Is toolbarBlue Then&lt;br /&gt;
            BlueText()&lt;br /&gt;
        End If&lt;br /&gt;
        If e.Button Is toolbarUppercase Then&lt;br /&gt;
            UppercaseText()&lt;br /&gt;
        End If&lt;br /&gt;
        If e.Button Is toolbarLowercase Then&lt;br /&gt;
            LowercaseText()&lt;br /&gt;
        End If&lt;br /&gt;
        If e.Button Is toolbarHelpAbout Then&lt;br /&gt;
            ShowAboutBox()&lt;br /&gt;
        End If&lt;br /&gt;
    End Sub&lt;br /&gt;
&lt;br /&gt;
    Public Sub UppercaseText()&lt;br /&gt;
        EditText = EditText.ToUpper&lt;br /&gt;
        StatusText = &amp;quot;The text is all uppercase&amp;quot;&lt;br /&gt;
    End Sub&lt;br /&gt;
    Public Sub LowercaseText()&lt;br /&gt;
        EditText = EditText.ToLower&lt;br /&gt;
        StatusText = &amp;quot;The text is all lowercase&amp;quot;&lt;br /&gt;
    End Sub&lt;br /&gt;
    Public Sub RedText()&lt;br /&gt;
        txtEdit.ForeColor = System.Drawing.Color.Red&lt;br /&gt;
        StatusText = &amp;quot;The text is red&amp;quot;&lt;br /&gt;
    End Sub&lt;br /&gt;
    Public Sub BlueText()&lt;br /&gt;
        txtEdit.ForeColor = System.Drawing.Color.Blue&lt;br /&gt;
        StatusText = &amp;quot;The text is blue&amp;quot;&lt;br /&gt;
    End Sub&lt;br /&gt;
&lt;br /&gt;
    Public Sub ShowAboutBox()&lt;br /&gt;
        MessageBox.Show(&amp;quot;About&amp;quot;)&lt;br /&gt;
    End Sub&lt;br /&gt;
&lt;br /&gt;
    Protected Overrides Sub Finalize()&lt;br /&gt;
        MyBase.Finalize()&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>