[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 463
  • Last Modified:

StatusStrip Control - VC#.NET

Hi,

I do have the following code in VB.NET for "StatusBar". Can you please provide me equivalent code in C# for "StatusStrip" control ?

Dim StatusBarPanel1 As New StatusBarPanel
Dim StatusBarPanel2 As New StatusBarPanel
StatusBarPanel1.Text = Now.Date.ToShortDateString()
StatusBarPanel2.Icon = New Icon("2.ico")
StatusBar1.Panels.Add(StatusBarPanel1)
StatusBar1.Panels.Add(StatusBarPanel2)
StatusBar1.ShowPanels = True

Thanks
0
milani_lucie
Asked:
milani_lucie
1 Solution
 
käµfm³d 👽Commented:
StatusBarPanel StatusBarPanel1 = new StatusBarPanel();
StatusBarPanel StatusBarPanel2 = new StatusBarPanel();
StatusBarPanel1.Text = DateTime.Now.Date.ToShortDateString();  // Added "DateTime"
StatusBarPanel2.Icon = new Icon("2.ico");
StatusBar1.Panels.Add(StatusBarPanel1);
StatusBar1.Panels.Add(StatusBarPanel2);
StatusBar1.ShowPanels = true;

//=======================================================
//Service provided by Telerik (www.telerik.com)
//Conversion powered by NRefactory.
//Twitter: @telerik, @toddanglin
//Facebook: facebook.com/telerik
//=======================================================

Open in new window

0
 
milani_lucieAuthor Commented:
kaufmed,

StatusBar is there in 2003 version. Now we do have StatusStrip control. I need the same example of StatusBar using StatusStrip control.

Thanks
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now