property Panel.Width as Long
Specifies the width in pixels of the panel.

TypeDescription
Long A long expression that specifies the width of the panel, in pixels. 
Use the Width property to specify the width of the panel. Use the Height property to get the height in pixels of the panel. Use the Format property to control the width and the height of the panels, using CRD strings.

The following VB sample shows "Is there any property to get the width/height of the 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,(5/6)"
	With .Panel(5)
		.Text = .Width
	End With
	With .Panel(6)
		.Text = .Height
	End With
	.EndUpdate 
End With
The following VB.NET sample shows "Is there any property to get the width/height of the 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,(5/6)"
	With .get_Panel(5)
		.Text = .Width
	End With
	With .get_Panel(6)
		.Text = .Height
	End With
	.EndUpdate 
End With
The following C++ sample shows "Is there any property to get the width/height of the 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,(5/6)");
EXSTATUSBARLib::IPanelPtr var_Panel = spStatusBar1->GetPanel(long(5));
	var_Panel->PutText(_bstr_t(var_Panel->GetWidth()));
EXSTATUSBARLib::IPanelPtr var_Panel1 = spStatusBar1->GetPanel(long(6));
	var_Panel1->PutText(_bstr_t(var_Panel1->GetHeight()));
spStatusBar1->EndUpdate();
The following C# sample shows "Is there any property to get the width/height of the 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,(5/6)";
EXSTATUSBARLib.Panel var_Panel = axStatusBar1.get_Panel(5);
	var_Panel.Text = var_Panel.Width.ToString();
EXSTATUSBARLib.Panel var_Panel1 = axStatusBar1.get_Panel(6);
	var_Panel1.Text = var_Panel1.Height.ToString();
axStatusBar1.EndUpdate();
The following VFP sample shows "Is there any property to get the width/height of the 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,(5/6)"
	with .Panel(5)
		.Text = .Width
	endwith
	with .Panel(6)
		.Text = .Height
	endwith
	.EndUpdate
endwith