2
Answers

Progressbar in c# windows form application

On button click event of the form New form will open.
 like below.
private void metroButton2_Click_1(object sender, EventArgs e)
{
Resultone rs = new Resultone();
this.Hide();
rs.Show();

And Resultone form is like below.
 
public partial class Resultone : MetroForm
{
   public Resultone()
         {
            InitializeComponent();

                  GenerateFile();
                   ShowContent();
                      outputfile();
         } 
....
}
This functions takes some time around 8 seconds to complete the job.
So I want to show progressbar until this processes are finished.
Answers (2)