C# Progress bar - How do i pass text message in progress percentage bar

  • Thread starter Thread starter Gani tpt
  • Start date Start date
G

Gani tpt

Guest
How do i pass text message in progress percentage bar. The text should display within the progress bar.

below is the loop which will be working fine. suppose before starting/ending the percentage, i just want to mention "start process" and "end process".

progbar1.Step = 1;

progbar1.Value = 0;

rogbar1.Minimum = 0;

progbar1.Maximum = dtTable1.Rows.Count;

progbar1.Text = "start process"; ==> Will this work...?

foreach (DataRow DR in dtTable1.Rows)

{

progbar1.Value++;

}

progbar1.Text = "end process"; ==> Will this work...?

progbar1.Value = 0;

progbar1.Maximum = dtTable2.Rows.Count;

progbar1.Text = "start process"; ==> Will this work...?

foreach (DataRow DR in dtTable2.Rows)

{

progbar1.Value++;

}

progbar1.Text = "end process"; ==> Will this work...?

Continue reading...
 
Back
Top