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

	<entry>
		<id>http://www.vbex.ru/index.php?title=VB.Net_Tutorial/GUI/StatusBar&amp;diff=3848&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/StatusBar&amp;diff=3848&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/StatusBar&amp;diff=3849&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/StatusBar&amp;diff=3849&amp;oldid=prev"/>
				<updated>2010-05-26T12:57:08Z</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;==Add Date and Time to StatusBar==&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 StatusBarTimeDate&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;
    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 StatusBar1 As System.Windows.Forms.StatusBar&lt;br /&gt;
    Friend WithEvents ToolTip1 As System.Windows.Forms.ToolTip&lt;br /&gt;
    Friend WithEvents StatusBarPanel1 As System.Windows.Forms.StatusBarPanel&lt;br /&gt;
    Friend WithEvents StatusBarPanel2 As System.Windows.Forms.StatusBarPanel&lt;br /&gt;
    Friend WithEvents Timer1 As System.Windows.Forms.Timer&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;
        Me.StatusBar1 = New System.Windows.Forms.StatusBar&lt;br /&gt;
        Me.ToolTip1 = New System.Windows.Forms.ToolTip(Me.ruponents)&lt;br /&gt;
        Me.StatusBarPanel1 = New System.Windows.Forms.StatusBarPanel&lt;br /&gt;
        Me.StatusBarPanel2 = New System.Windows.Forms.StatusBarPanel&lt;br /&gt;
        Me.Timer1 = New System.Windows.Forms.Timer(Me.ruponents)&lt;br /&gt;
        CType(Me.StatusBarPanel1, System.ruponentModel.ISupportInitialize).BeginInit()&lt;br /&gt;
        CType(Me.StatusBarPanel2, System.ruponentModel.ISupportInitialize).BeginInit()&lt;br /&gt;
        Me.SuspendLayout()&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;StatusBar1&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.StatusBar1.Location = New System.Drawing.Point(0, 110)&lt;br /&gt;
        Me.StatusBar1.Name = &amp;quot;StatusBar1&amp;quot;&lt;br /&gt;
        Me.StatusBar1.Panels.AddRange(New System.Windows.Forms.StatusBarPanel() {Me.StatusBarPanel1, Me.StatusBarPanel2})&lt;br /&gt;
        Me.StatusBar1.ShowPanels = True&lt;br /&gt;
        Me.StatusBar1.Size = New System.Drawing.Size(216, 48)&lt;br /&gt;
        Me.StatusBar1.TabIndex = 0&lt;br /&gt;
        Me.StatusBar1.Text = &amp;quot;StatusBar1&amp;quot;&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;StatusBarPanel1&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.StatusBarPanel1.BorderStyle = System.Windows.Forms.StatusBarPanelBorderStyle.Raised&lt;br /&gt;
        Me.StatusBarPanel1.ToolTipText = &amp;quot;Time&amp;quot;&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;StatusBarPanel2&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.StatusBarPanel2.BorderStyle = System.Windows.Forms.StatusBarPanelBorderStyle.Raised&lt;br /&gt;
        Me.StatusBarPanel2.ToolTipText = &amp;quot;Date&amp;quot;&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;Timer1&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.Timer1.Enabled = True&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(216, 158)&lt;br /&gt;
        Me.Controls.Add(Me.StatusBar1)&lt;br /&gt;
        CType(Me.StatusBarPanel1, System.ruponentModel.ISupportInitialize).EndInit()&lt;br /&gt;
        CType(Me.StatusBarPanel2, System.ruponentModel.ISupportInitialize).EndInit()&lt;br /&gt;
        Me.ResumeLayout(False)&lt;br /&gt;
    End Sub&lt;br /&gt;
    Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick&lt;br /&gt;
        StatusBarPanel2.Text = System.DateTime.Today.ToLongDateString&lt;br /&gt;
        StatusBarPanel1.Text = System.DateTime.Now.ToLongTimeString&lt;br /&gt;
    End Sub&lt;br /&gt;
End Class&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Add Panels to StatusBar==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;vbnet&amp;quot;&amp;gt;Option Strict On&lt;br /&gt;
Imports System.Windows.Forms&lt;br /&gt;
Imports System.Drawing&lt;br /&gt;
Imports System.Drawing.Drawing2D&lt;br /&gt;
public class StatusBarPanelAddAction&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;
&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 StatusBar1 As System.Windows.Forms.StatusBar&lt;br /&gt;
    Friend WithEvents StatusBarPanel1 As System.Windows.Forms.StatusBarPanel&lt;br /&gt;
    Friend WithEvents StatusBarPanel2 As System.Windows.Forms.StatusBarPanel&lt;br /&gt;
    Friend WithEvents StatusBarPanel3 As System.Windows.Forms.StatusBarPanel&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 btnMoveControls As System.Windows.Forms.Button&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;
      Me.StatusBar1 = New System.Windows.Forms.StatusBar()&lt;br /&gt;
      Me.StatusBarPanel1 = New System.Windows.Forms.StatusBarPanel()&lt;br /&gt;
      Me.StatusBarPanel3 = New System.Windows.Forms.StatusBarPanel()&lt;br /&gt;
      Me.StatusBarPanel2 = New System.Windows.Forms.StatusBarPanel()&lt;br /&gt;
      CType(Me.StatusBarPanel1, System.ruponentModel.ISupportInitialize).BeginInit()&lt;br /&gt;
      CType(Me.StatusBarPanel3, System.ruponentModel.ISupportInitialize).BeginInit()&lt;br /&gt;
      CType(Me.StatusBarPanel2, System.ruponentModel.ISupportInitialize).BeginInit()&lt;br /&gt;
      Me.SuspendLayout()&lt;br /&gt;
      &amp;quot;&lt;br /&gt;
      &amp;quot;StatusBar1&lt;br /&gt;
      &amp;quot;&lt;br /&gt;
      Me.StatusBar1.Location = New System.Drawing.Point(0, 262)&lt;br /&gt;
      Me.StatusBar1.Name = &amp;quot;StatusBar1&amp;quot;&lt;br /&gt;
      Me.StatusBar1.Panels.AddRange(New System.Windows.Forms.StatusBarPanel() {Me.StatusBarPanel1, Me.StatusBarPanel3, Me.StatusBarPanel2})&lt;br /&gt;
      Me.StatusBar1.ShowPanels = True&lt;br /&gt;
      Me.StatusBar1.Size = New System.Drawing.Size(488, 40)&lt;br /&gt;
      Me.StatusBar1.TabIndex = 0&lt;br /&gt;
      Me.StatusBar1.Text = &amp;quot;StatusBar1&amp;quot;&lt;br /&gt;
      &amp;quot;&lt;br /&gt;
      &amp;quot;StatusBarPanel1&lt;br /&gt;
      &amp;quot;&lt;br /&gt;
      Me.StatusBarPanel1.Text = &amp;quot;I am Panel1&amp;quot;&lt;br /&gt;
      &amp;quot;&lt;br /&gt;
      &amp;quot;StatusBarPanel2&lt;br /&gt;
      &amp;quot;&lt;br /&gt;
      Me.StatusBarPanel2.Alignment = System.Windows.Forms.HorizontalAlignment.Center&lt;br /&gt;
      Me.StatusBarPanel2.Text = &amp;quot;I am Panel2&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(488, 302)&lt;br /&gt;
      Me.Controls.AddRange(New System.Windows.Forms.Control() {Me.StatusBar1})&lt;br /&gt;
      CType(Me.StatusBarPanel1, System.ruponentModel.ISupportInitialize).EndInit()&lt;br /&gt;
      CType(Me.StatusBarPanel3, System.ruponentModel.ISupportInitialize).EndInit()&lt;br /&gt;
      CType(Me.StatusBarPanel2, System.ruponentModel.ISupportInitialize).EndInit()&lt;br /&gt;
      Me.ResumeLayout(False)&lt;br /&gt;
   End Sub&lt;br /&gt;
#End Region&lt;br /&gt;
    Private Sub StatusBar1_PanelClick(ByVal sender As System.Object, _&lt;br /&gt;
        ByVal e As System.Windows.Forms.StatusBarPanelClickEventArgs) _&lt;br /&gt;
        Handles StatusBar1.PanelClick&lt;br /&gt;
        &lt;br /&gt;
        Select Case StatusBar1.Panels.IndexOf(e.StatusBarPanel)&lt;br /&gt;
            Case 0&lt;br /&gt;
                MsgBox(&amp;quot;You clicked StatusBarPanel1!&amp;quot;)&lt;br /&gt;
            Case 1&lt;br /&gt;
                MsgBox(&amp;quot;You clicked StatusBarPanel2!&amp;quot;)&lt;br /&gt;
            Case 2&lt;br /&gt;
                MsgBox(&amp;quot;You clicked StatusBarPanel3!&amp;quot;)&lt;br /&gt;
            Case 3&lt;br /&gt;
                MsgBox(&amp;quot;You clicked myPanel!&amp;quot;)&lt;br /&gt;
        End Select&lt;br /&gt;
        StatusBar1.Panels.Add(Now.ToShortTimeString)&lt;br /&gt;
        StatusBar1.Panels(3).AutoSize = StatusBarPanelAutoSize.Spring&lt;br /&gt;
        StatusBar1.Panels(3).BorderStyle = StatusBarPanelBorderStyle.Sunken&lt;br /&gt;
        StatusBar1.Panels(0).Text = &amp;quot;EARTH&amp;quot;&lt;br /&gt;
        StatusBar1.Panels(0).Text = &amp;quot;SUN&amp;quot;&lt;br /&gt;
    End Sub&lt;br /&gt;
&lt;br /&gt;
End Class&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==StatusBar mouse click events==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;vbnet&amp;quot;&amp;gt;Option Strict On&lt;br /&gt;
Imports System.Windows.Forms&lt;br /&gt;
Imports System.Drawing&lt;br /&gt;
Imports System.Drawing.Drawing2D&lt;br /&gt;
public class StatusBarPanelAddAction&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;
&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 StatusBar1 As System.Windows.Forms.StatusBar&lt;br /&gt;
    Friend WithEvents StatusBarPanel1 As System.Windows.Forms.StatusBarPanel&lt;br /&gt;
    Friend WithEvents StatusBarPanel2 As System.Windows.Forms.StatusBarPanel&lt;br /&gt;
    Friend WithEvents StatusBarPanel3 As System.Windows.Forms.StatusBarPanel&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 btnMoveControls As System.Windows.Forms.Button&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;
      Me.StatusBar1 = New System.Windows.Forms.StatusBar()&lt;br /&gt;
      Me.StatusBarPanel1 = New System.Windows.Forms.StatusBarPanel()&lt;br /&gt;
      Me.StatusBarPanel3 = New System.Windows.Forms.StatusBarPanel()&lt;br /&gt;
      Me.StatusBarPanel2 = New System.Windows.Forms.StatusBarPanel()&lt;br /&gt;
      CType(Me.StatusBarPanel1, System.ruponentModel.ISupportInitialize).BeginInit()&lt;br /&gt;
      CType(Me.StatusBarPanel3, System.ruponentModel.ISupportInitialize).BeginInit()&lt;br /&gt;
      CType(Me.StatusBarPanel2, System.ruponentModel.ISupportInitialize).BeginInit()&lt;br /&gt;
      Me.SuspendLayout()&lt;br /&gt;
      &amp;quot;&lt;br /&gt;
      &amp;quot;StatusBar1&lt;br /&gt;
      &amp;quot;&lt;br /&gt;
      Me.StatusBar1.Location = New System.Drawing.Point(0, 262)&lt;br /&gt;
      Me.StatusBar1.Name = &amp;quot;StatusBar1&amp;quot;&lt;br /&gt;
      Me.StatusBar1.Panels.AddRange(New System.Windows.Forms.StatusBarPanel() {Me.StatusBarPanel1, Me.StatusBarPanel3, Me.StatusBarPanel2})&lt;br /&gt;
      Me.StatusBar1.ShowPanels = True&lt;br /&gt;
      Me.StatusBar1.Size = New System.Drawing.Size(488, 40)&lt;br /&gt;
      Me.StatusBar1.TabIndex = 0&lt;br /&gt;
      Me.StatusBar1.Text = &amp;quot;StatusBar1&amp;quot;&lt;br /&gt;
      &amp;quot;&lt;br /&gt;
      &amp;quot;StatusBarPanel1&lt;br /&gt;
      &amp;quot;&lt;br /&gt;
      Me.StatusBarPanel1.Text = &amp;quot;I am Panel1&amp;quot;&lt;br /&gt;
      &amp;quot;&lt;br /&gt;
      &amp;quot;StatusBarPanel2&lt;br /&gt;
      &amp;quot;&lt;br /&gt;
      Me.StatusBarPanel2.Alignment = System.Windows.Forms.HorizontalAlignment.Center&lt;br /&gt;
      Me.StatusBarPanel2.Text = &amp;quot;I am Panel2&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(488, 302)&lt;br /&gt;
      Me.Controls.AddRange(New System.Windows.Forms.Control() {Me.StatusBar1})&lt;br /&gt;
      CType(Me.StatusBarPanel1, System.ruponentModel.ISupportInitialize).EndInit()&lt;br /&gt;
      CType(Me.StatusBarPanel3, System.ruponentModel.ISupportInitialize).EndInit()&lt;br /&gt;
      CType(Me.StatusBarPanel2, System.ruponentModel.ISupportInitialize).EndInit()&lt;br /&gt;
      Me.ResumeLayout(False)&lt;br /&gt;
   End Sub&lt;br /&gt;
#End Region&lt;br /&gt;
    Private Sub StatusBar1_PanelClick(ByVal sender As System.Object, _&lt;br /&gt;
        ByVal e As System.Windows.Forms.StatusBarPanelClickEventArgs) _&lt;br /&gt;
        Handles StatusBar1.PanelClick&lt;br /&gt;
        &lt;br /&gt;
        Select Case StatusBar1.Panels.IndexOf(e.StatusBarPanel)&lt;br /&gt;
            Case 0&lt;br /&gt;
                MsgBox(&amp;quot;You clicked StatusBarPanel1!&amp;quot;)&lt;br /&gt;
            Case 1&lt;br /&gt;
                MsgBox(&amp;quot;You clicked StatusBarPanel2!&amp;quot;)&lt;br /&gt;
            Case 2&lt;br /&gt;
                MsgBox(&amp;quot;You clicked StatusBarPanel3!&amp;quot;)&lt;br /&gt;
            Case 3&lt;br /&gt;
                MsgBox(&amp;quot;You clicked myPanel!&amp;quot;)&lt;br /&gt;
        End Select&lt;br /&gt;
        StatusBar1.Panels.Add(Now.ToShortTimeString)&lt;br /&gt;
        StatusBar1.Panels(3).AutoSize = StatusBarPanelAutoSize.Spring&lt;br /&gt;
        StatusBar1.Panels(3).BorderStyle = StatusBarPanelBorderStyle.Sunken&lt;br /&gt;
        StatusBar1.Panels(0).Text = &amp;quot;EARTH&amp;quot;&lt;br /&gt;
        StatusBar1.Panels(0).Text = &amp;quot;SUN&amp;quot;&lt;br /&gt;
    End Sub&lt;br /&gt;
&lt;br /&gt;
End Class&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Update panel text on a Status Bar==&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.Drawing&lt;br /&gt;
Imports System.Drawing.Drawing2D&lt;br /&gt;
Imports System.Windows.Forms&lt;br /&gt;
public class UpdatePanelTextStatusBar&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;
    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 StatusBar1 As System.Windows.Forms.StatusBar&lt;br /&gt;
    Friend WithEvents Button1 As System.Windows.Forms.Button&lt;br /&gt;
    Friend WithEvents StatusBarPanel1 As System.Windows.Forms.StatusBarPanel&lt;br /&gt;
    Friend WithEvents StatusBarPanel2 As System.Windows.Forms.StatusBarPanel&lt;br /&gt;
    Friend WithEvents StatusBarPanel3 As System.Windows.Forms.StatusBarPanel&lt;br /&gt;
    Friend WithEvents StatusBarPanel4 As System.Windows.Forms.StatusBarPanel&lt;br /&gt;
    &amp;lt;System.Diagnostics.DebuggerStepThrough()&amp;gt; Private Sub InitializeComponent()&lt;br /&gt;
        Me.StatusBar1 = New System.Windows.Forms.StatusBar&lt;br /&gt;
        Me.Button1 = New System.Windows.Forms.Button&lt;br /&gt;
        Me.StatusBarPanel1 = New System.Windows.Forms.StatusBarPanel&lt;br /&gt;
        Me.StatusBarPanel2 = New System.Windows.Forms.StatusBarPanel&lt;br /&gt;
        Me.StatusBarPanel3 = New System.Windows.Forms.StatusBarPanel&lt;br /&gt;
        Me.StatusBarPanel4 = New System.Windows.Forms.StatusBarPanel&lt;br /&gt;
        CType(Me.StatusBarPanel1, System.ruponentModel.ISupportInitialize).BeginInit()&lt;br /&gt;
        CType(Me.StatusBarPanel2, System.ruponentModel.ISupportInitialize).BeginInit()&lt;br /&gt;
        CType(Me.StatusBarPanel3, System.ruponentModel.ISupportInitialize).BeginInit()&lt;br /&gt;
        CType(Me.StatusBarPanel4, System.ruponentModel.ISupportInitialize).BeginInit()&lt;br /&gt;
        Me.SuspendLayout()&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        &amp;quot;StatusBar1&lt;br /&gt;
        &amp;quot;&lt;br /&gt;
        Me.StatusBar1.Location = New System.Drawing.Point(0, 251)&lt;br /&gt;
        Me.StatusBar1.Name = &amp;quot;StatusBar1&amp;quot;&lt;br /&gt;
        Me.StatusBar1.Panels.AddRange(New System.Windows.Forms.StatusBarPanel() {Me.StatusBarPanel1, Me.StatusBarPanel2, Me.StatusBarPanel3, Me.StatusBarPanel4})&lt;br /&gt;
        Me.StatusBar1.ShowPanels = True&lt;br /&gt;
        Me.StatusBar1.Size = New System.Drawing.Size(376, 22)&lt;br /&gt;
        Me.StatusBar1.TabIndex = 1&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(152, 88)&lt;br /&gt;
        Me.Button1.Name = &amp;quot;Button1&amp;quot;&lt;br /&gt;
        Me.Button1.TabIndex = 2&lt;br /&gt;
        Me.Button1.Text = &amp;quot;Click Me&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(376, 273)&lt;br /&gt;
        Me.Controls.Add(Me.Button1)&lt;br /&gt;
        Me.Controls.Add(Me.StatusBar1)&lt;br /&gt;
        Me.Name = &amp;quot;Form1&amp;quot;&lt;br /&gt;
        Me.Text = &amp;quot;Form1&amp;quot;&lt;br /&gt;
        CType(Me.StatusBarPanel1, System.ruponentModel.ISupportInitialize).EndInit()&lt;br /&gt;
        CType(Me.StatusBarPanel2, System.ruponentModel.ISupportInitialize).EndInit()&lt;br /&gt;
        CType(Me.StatusBarPanel3, System.ruponentModel.ISupportInitialize).EndInit()&lt;br /&gt;
        CType(Me.StatusBarPanel4, System.ruponentModel.ISupportInitialize).EndInit()&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;
        StatusBar1.Panels(1).Text = &amp;quot;Hello there!&amp;quot;&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>