Solved

StatusStrip Control - VC#.NET

Posted on 2013-01-14
3
430 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 75

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

733 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