T
Tim
Hi
I have the following code to open a form modally. It works great only the
second time I have to close it twice, the third time 4 times.
I am using Dispose(), why is it coming back so much?
Tim
MM.Forms.frmPriceCalc fCalc = new MM.Forms.frmPriceCalc();
fCalc.RegPriceCalc = true; //regular price
fCalc.calcSource = 2;
fCalc.LoadFormInfo();
if(fCalc.ShowDialog(this) == DialogResult.OK)
{
//price has changed refresh the grid.
GridDataPreload();
}
fCalc.Dispose();
I have the following code to open a form modally. It works great only the
second time I have to close it twice, the third time 4 times.
I am using Dispose(), why is it coming back so much?
Tim
MM.Forms.frmPriceCalc fCalc = new MM.Forms.frmPriceCalc();
fCalc.RegPriceCalc = true; //regular price
fCalc.calcSource = 2;
fCalc.LoadFormInfo();
if(fCalc.ShowDialog(this) == DialogResult.OK)
{
//price has changed refresh the grid.
GridDataPreload();
}
fCalc.Dispose();