I'm having the same kind of problem.
void SaveWbmpList()
{
waitFormThread=new Thread(new ThreadStart(waitFormShow));
waitFormThread.Start();
a.Files.WriteBinary(thisDir+"\\Data", this.wbmpList);
}
void waitFormShow()
{
WaitForm wf=new WaitForm();
wf.ShowDialog(this);
wf.BringToFront();
}The WaitForm is a Form I am using to display while a file is being serialized to disk. The problem is that it never stays in front of the program while saving.
And when it does come to the front, it never shows the whole form and never runs the code in the form! I have a progress bar on it hooked to a timer.
Also, at the times it comes to the front, when it is done saving, it does not stay in the front. Even when in the WaitForm code I have for each time the timer ticks:
void incrTimer_Tick(object s, EventArgs e)
{
this.BringToFront();
this.Focus();
this.progressBar1.Increment(1);
}