StatusStrip — это статус бар.
Наиболее удобно добавлять элементы управления в контейнер StatusStrip и редактировать с помощью свойства Items, нажав на кнопку, откроется редактор.
Form1.cs
usingSystem;usingSystem.Collections.Generic;usingSystem.ComponentModel;usingSystem.Data;usingSystem.Drawing;usingSystem.Linq;usingSystem.Text;usingSystem.Threading.Tasks;usingSystem.Windows.Forms;namespace_0066 {-
publicpartialclassForm1 : Form { -
publicForm1() { -
InitializeComponent(); -
timer1.Start(); -
timer2.Start(); -
} -
privatevoidtimer1_Tick(objectsender, EventArgs e) { -
toolStripStatusLabel1.Text =string.Format("{0:F}", DateTime.Now); -
} -
privatevoidtimer2_Tick(objectsender, EventArgs e) { -
toolStripProgressBar1.Increment(1); -
if(toolStripProgressBar1.Value == toolStripProgressBar1.Maximum) { -
timer2.Stop(); -
} -
} -
} }
usingSystem;usingSystem.Collections.Generic;usingSystem.ComponentModel;usingSystem.Data;usingSystem.Drawing;usingSystem.Linq;usingSystem.Text;usingSystem.Threading.Tasks;usingSystem.Windows.Forms;namespace_0066 {-
publicpartialclassForm1 : Form { -
publicForm1() { -
InitializeComponent(); -
timer1.Start(); -
timer2.Start(); -
} -
privatevoidtimer1_Tick(objectsender, EventArgs e) { -
toolStripStatusLabel1.Text =string.Format("{0:F}", DateTime.Now); -
} -
privatevoidtimer2_Tick(objectsender, EventArgs e) { -
toolStripProgressBar1.Increment(1); -
if(toolStripProgressBar1.Value == toolStripProgressBar1.Maximum) { -
timer2.Stop(); -
} -
} -
} }