In C# im trying to make a little game type program and im trying to make a loading bar that uses the Progress bar and the text is using a Label, for example the Progress bar is 1 - 25 and i want the label text to update while the bar is, heres an example:
    private void StartLoading_Click(object sender, EventArgs e)
    {
        MainProgressBar.Maximum = 25;
        int P = 0;
        while (P < 25)
        {
            // Delay
            System.Threading.Thread.Sleep(130);
            // Increase Progress
            P++;
            // Set Progress Bar Value
            MainProgressBar.Value = P;
            // Set Text Above Progress Bar
            LoadingText.Text = P + "/25";
        }
    }
Ps. I dont want some Huge code, i want it to be simple like this
 
     
    