Solved

StatusStrip Control - VC#.NET

Posted on 2013-01-14
3
425 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 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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

This article describes a simple method to resize a control at runtime.  It includes ready-to-use source code and a complete sample demonstration application.  We'll also talk about C# Extension Methods. Introduction In one of my applications…
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.
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …

770 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