Solved

StatusStrip Control - VC#.NET

Posted on 2013-01-14
3
421 Views
Last Modified: 2013-01-17
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
Comment
Question by:milani_lucie
3 Comments
 
LVL 74

Accepted Solution

by:
käµfm³d   👽 earned 500 total points
ID: 38774669
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
 
LVL 83

Expert Comment

by:CodeCruiser
ID: 38774701
0
 

Author Comment

by:milani_lucie
ID: 38774731
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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
This video discusses moving either the default database or any database to a new volume.
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now