You can use:
PushDisposableStatusText which will pop itself:
using (this.oTrans.PushDisposableStatusText("Printing...", true))
{
if (this.BuildBartenderFile(whereClauseUD100A) == true)
{
// Etc
}
}
If you use PushStatusText() then you have to follow up with PopStatus();
this.oTrans.PushStatusText("Importing: " + jobNum, true);
bool recordExists = this.CheckRecordExistsByJobNum(jobNum);
this.oTrans.PopStatus();
PS: I’ll port those Posts to E10Help, because LinkedIn is no place for snippets I mean the Markup is horrible, I was just experimenting with some blogging.