milani_lucie
asked on
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(Stat usBarPanel 1)
StatusBar1.Panels.Add(Stat usBarPanel 2)
StatusBar1.ShowPanels = True
Thanks
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(Stat
StatusBar1.Panels.Add(Stat
StatusBar1.ShowPanels = True
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
kaufmed,
StatusBar is there in 2003 version. Now we do have StatusStrip control. I need the same example of StatusBar using StatusStrip control.
Thanks
StatusBar is there in 2003 version. Now we do have StatusStrip control. I need the same example of StatusBar using StatusStrip control.
Thanks
http://msdn.microsoft.com/en-us/library/system.windows.forms.statusstrip.aspx?cs-save-lang=1&cs-lang=csharp#code-snippet-2