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();
}
{
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();
}
{
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.

Amresh SRank #5,790 · 286 reputationPosted Nov 20, 2016, 7:08 PM EST
Dhruti Prajapati7 reputationPosted Nov 20, 2016, 7:49 PM EST