using System; using System.Windows.Forms; using System.Threading; namespace Step.UI.Views { public partial class OpeningLayer : UserControl { public OpeningLayer() { InitializeComponent(); } private void OpeningLayer_Load(object sender, EventArgs e) { statusLabel.Text = ""; Thread th = new Thread(() => { for (int i = 0; i <= 100; i++) { //metroProgressSpinner.Value = i; if (i == 100) i = 0; } }); } } }