property Panel.Text as String
Gets or sets the text of the status bar panel.

TypeDescription
String A String expression that indicates the caption of the panel. This property supports HTML format as listed bellow. 
Use the Text property to assign an HTML caption to a panel. Use the Format property to add and arrange panels in your status bar control. Use the Panel property to access a Panel object. Use the Debug property to display the identifiers of the panels in the status bar. Use the Enabled property to enable or disable a panel. Use the ToolTipText property to specify the tooltip being shown when the cursor hovers the panel. Use the Image property to assign a single icon to a panel, or use the <img> HTML tag to assign multiple icons or custom size pictures to a panel. Use the Images method to  assign a list of icons to your status bar. Use the Percent property to display a progress bar inside the panel. Use the Transparency property to apply semi-transparent color or use the ForeColor property to specify the panel's foreground color. Use the ControlID property to display an ActiveX control inside the panel. 

Use the Offset property to apply extra padding to your text inside the panel.

The Text property supports the following HTML tags:

The following VB sample shows "How do I assign a caption or a text to a panel":
With StatusBar1
	.BeginUpdate 
	.VisualAppearance.Add 4,"c:\exontrol\images\border.ebn"
	.VisualAppearance.Add 5,"CP:4 1 1 -1 -1"
	.BackColorPanels = 83886080
	.BackColor = -2147483633
	.Format = "1/2"
	.Panel(1).Text = "Panel 1"
	.Panel(2).Text = "Panel 2"
	.EndUpdate 
End With
The following VB.NET sample shows "How do I assign a caption or a text to a panel":
With AxStatusBar1
	.BeginUpdate 
	.VisualAppearance.Add 4,"c:\exontrol\images\border.ebn"
	.VisualAppearance.Add 5,"CP:4 1 1 -1 -1"
	.GetOcx().BackColorPanels = &H5000000
	.GetOcx().BackColor = &H8000000f
	.Format = "1/2"
	.get_Panel(1).Text = "Panel 1"
	.get_Panel(2).Text = "Panel 2"
	.EndUpdate 
End With
The following C++ sample shows "How do I assign a caption or a text to a panel":
/*
	Copy and paste the following directives to your header file as
	it defines the namespace 'EXSTATUSBARLib' for the library: 'ExStatusBar 1.0 Control Library'

	#import "C:\\WINNT\\system32\\ExStatusBar.dll"
	using namespace EXSTATUSBARLib;
*/
EXSTATUSBARLib::IStatusBarPtr spStatusBar1 = GetDlgItem(IDC_STATUSBAR1)->GetControlUnknown();
spStatusBar1->BeginUpdate();
spStatusBar1->GetVisualAppearance()->Add(4,"c:\\exontrol\\images\\border.ebn");
spStatusBar1->GetVisualAppearance()->Add(5,"CP:4 1 1 -1 -1");
spStatusBar1->PutBackColorPanels(83886080);
spStatusBar1->PutBackColor(-2147483633);
spStatusBar1->PutFormat(L"1/2");
spStatusBar1->GetPanel(long(1))->PutText(L"Panel 1");
spStatusBar1->GetPanel(long(2))->PutText(L"Panel 2");
spStatusBar1->EndUpdate();
The following C# sample shows "How do I assign a caption or a text to a panel":
axStatusBar1.BeginUpdate();
axStatusBar1.VisualAppearance.Add(4,"c:\\exontrol\\images\\border.ebn");
axStatusBar1.VisualAppearance.Add(5,"CP:4 1 1 -1 -1");
(axStatusBar1.GetOcx() as EXSTATUSBARLib.StatusBar).BackColorPanels = 0x5000000;
(axStatusBar1.GetOcx() as EXSTATUSBARLib.StatusBar).BackColor = 0x8000000f;
axStatusBar1.Format = "1/2";
axStatusBar1.get_Panel(1).Text = "Panel 1";
axStatusBar1.get_Panel(2).Text = "Panel 2";
axStatusBar1.EndUpdate();
The following VFP sample shows "How do I assign a caption or a text to a panel":
with thisform.StatusBar1
	.BeginUpdate
	.VisualAppearance.Add(4,"c:\exontrol\images\border.ebn")
	.VisualAppearance.Add(5,"CP:4 1 1 -1 -1")
	.BackColorPanels = 83886080
	.BackColor = -2147483633
	.Format = "1/2"
	.Panel(1).Text = "Panel 1"
	.Panel(2).Text = "Panel 2"
	.EndUpdate
endwith